上一篇讲到的本地推送是普通的消息推送,本篇要讲一下带按钮动作的推送消息,先上个图瞅瞅:继上一篇的内容进行小小的改动:在didFinishLaunchingWithOptions方法内进行以下修改if (UIDevice.currentDevice().systemVersion as NSStrin...
分类:
编程语言 时间:
2015-07-03 11:48:52
阅读次数:
132
IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);
NSLog(@"name: %@", [[UIDevice currentDevice] name]);
NSLog(...
分类:
移动开发 时间:
2015-06-30 18:34:42
阅读次数:
139
应用统计中有时候需要上传设备型号,如果这样写:[[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
1:IOS7状态栏覆盖页面问题: 前 后 当然这也是临时解决方案,最好还是兼容状态栏UI更美观 代码如下: if?([[[UIDevice?currentDevice]?systemVersion]?floatValue]?>=?7)?{
????????CGRect?vie...
分类:
移动开发 时间:
2015-06-16 17:09:58
阅读次数:
118
Interfacescom.android.uiautomator.core.UiWatcher描述:表示目标设备上的条件监听器,为了学习如何注册一个条件监听器,看UiDevice.registerWatcher()公共方法abstract booleancheckForCondition()当使用...
分类:
其他好文 时间:
2015-06-16 14:36:00
阅读次数:
124
UiDevice类描述:UiDevice用于访问有关设备的状态信息,你可以使用该类来模拟设备上的用户行为,例如d-pad键操作或者Home键和menu键方法描述:按键使用click(int x,int y):boolean – UiDevice//单击用户指定的坐标pressBack():boole...
分类:
其他好文 时间:
2015-06-16 10:49:08
阅读次数:
229
ios软件开发过程中很重要的一点是对系统和屏幕进行适配对系统的适配主要是IOS7以后和之前以及IOS8新增特性,屏幕适配主要是对不同设备采用不同的布局以最佳展示效果展现给用户。针对系统的适配:IOS7以后和之前12#define IOSVersion [[[UIDevice currentDevic...
分类:
移动开发 时间:
2015-06-11 12:51:27
阅读次数:
139
获取iOS系统版本,谨慎使用[[[UIDevice currentDevice] systemVersion] floatValue]...
分类:
移动开发 时间:
2015-06-08 11:43:02
阅读次数:
151
typedef NS_ENUM(NSInteger, UIDeviceOrientation)//设备方向{ UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // 竖向,头向上 UIDeviceOrientati...
分类:
其他好文 时间:
2015-06-04 18:53:37
阅读次数:
82