码迷,mamicode.com
首页 >  
搜索关键字:currentdevice    ( 174个结果
iOS 获取设备型号,设备版本号,程序版本号
iOS 开发  常用到的方法 NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);     NSLog(@"name: %@", [[UIDevice currentDevice] name]);     NSLog(@"systemName: %@", [[UIDev...
分类:移动开发   时间:2015-07-17 16:24:16    阅读次数:191
【iOS开发系列】UIDevice设备信息
【1】 判断是否是横向屏:BOOL b=UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation);     获取设备uniqueIdentifier : [UIDevice currentDevice].uniqueIdentifier;但在ios5中,它已被废弃。 http://kensou.blo...
分类:移动开发   时间:2015-07-15 13:21:24    阅读次数:176
ios7 兼容之前版本
1,首先123456789//定义宏,判断ios7#define IOS7 [[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0//添加代码if(IOS7){self.edgesForExtendedLayout = UIRectEd...
分类:移动开发   时间:2015-07-06 09:57:56    阅读次数:139
SWIFT推送之本地推送(UILocalNotification)之二带按钮的消息
上一篇讲到的本地推送是普通的消息推送,本篇要讲一下带按钮动作的推送消息,先上个图瞅瞅:继上一篇的内容进行小小的改动:在didFinishLaunchingWithOptions方法内进行以下修改if (UIDevice.currentDevice().systemVersion as NSStrin...
分类:编程语言   时间:2015-07-03 11:48:52    阅读次数:132
iOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等     NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);     NSLog(@"name: %@", [[UIDevice currentDevice] name]);     NSLog(...
分类:移动开发   时间:2015-06-30 18:34:42    阅读次数:139
[iOS]获取设备具体型号信息
应用统计中有时候需要上传设备型号,如果这样写:[[UIDevice currentDevice] model]获得的设备型号不是具体型号,如在iPhone5S上面运行,实测得到字符串为@”iPhone”,我想要的是具体型号。 这里提供一个方法来获得设备具体型号(版本与机型的对应关系来源于维基百科):- (NSString *)platform{ struct utsname systemI...
分类:移动开发   时间:2015-06-30 18:24:40    阅读次数:138
获取屏幕宽高和系统色系
ios7下获取的屏幕高度[UIScreen mainScreen].bounds.size.height=1024ios8下获取的屏幕高度[UIScreen mainScreen].bounds.size.height=768 if ([[[UIDevice currentDevice] syste...
分类:其他好文   时间:2015-06-20 00:14:22    阅读次数:210
PhoneGap2.9 IOS项目 BUG修复
1:IOS7状态栏覆盖页面问题: 前 后 当然这也是临时解决方案,最好还是兼容状态栏UI更美观 代码如下: if?([[[UIDevice?currentDevice]?systemVersion]?floatValue]?>=?7)?{ ????????CGRect?vie...
分类:移动开发   时间:2015-06-16 17:09:58    阅读次数:118
获取iOS系统版本,谨慎使用[[[UIDevice currentDevice] systemVersion] floatValue]
获取iOS系统版本,谨慎使用[[[UIDevice currentDevice] systemVersion] floatValue]...
分类:移动开发   时间:2015-06-08 11:43:02    阅读次数:151
?Object-C获取手机设备信息
一、获取UiDevice设备信息// 获取设备名称NSString *name = [[UIDevice currentDevice] name];// 获取设备系统名称NSString *systemName = [[UIDevice currentDevice] systemName];// 获...
分类:移动开发   时间:2015-06-01 16:21:57    阅读次数:120
174条   上一页 1 ... 8 9 10 11 12 ... 18 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!