上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
iOS设备相对于电脑,内存和处理能力有限,所以一段代码或者程序运行的时间需要时刻注意,这里提供两种获取精确时间的方法。 方法一:使用系统时间 1 NSDate* tmpStartData = [[NSDate date] retain]; 2 //You code here... 3 double Read More
posted @ 2016-03-11 15:03 星语海蓝 Views(1397) Comments(0) Diggs(0) Edit
1.PushKit的认识 (1)概念 ios8苹果新引入了名为pushkit的框架和一种新的push通知类型,被称作voip push.该push方式旨在提供区别于普通apns push的能力,通过这种push方式可以使app执行制定的代码(在弹出通知给用户之前);而该通知的默认行为和apns通知有 Read More
posted @ 2016-02-23 20:06 星语海蓝 Views(4805) Comments(6) Diggs(0) Edit
(1)先导出Push Services的证书,比如我们命名为“magic_cert.p12”,注意导出时会让你输入密码。 (2)再导出Push Services证书的密钥(Private Key),比如我们命名为“magic_key.p12”: 5、p12文件转换为pem文件。 (1) 将两个p12 Read More
posted @ 2016-02-22 17:47 星语海蓝 Views(11015) Comments(0) Diggs(0) Edit
推送通知是由应用服务提供商发起的,通过苹果的APNs(Apple Push Notification Server)发送到应用客户端。下面是苹果官方关于推送通知的过程示意图: 推送通知的过程可以分为以下几步: 应用服务提供商从服务器端把要发送的消息和设备令牌(device token)发送给苹果的消 Read More
posted @ 2016-02-22 15:13 星语海蓝 Views(2207) Comments(1) Diggs(1) Edit
关于手操作需要强调几点: UIImageView默认是不支持交互的,也就是userInteractionEnabled=NO ,因此要接收触摸事件(手势识别),必须设置userInteractionEnabled=YES(在iOS中UILabel、UIImageView的userInteractio Read More
posted @ 2016-02-03 16:14 星语海蓝 Views(5678) Comments(0) Diggs(0) Edit
事件处理机制 在iOS中发生触摸后,事件会加入到UIApplication事件队列(在这个系列关于iOS开发的第一篇文章中我们分析iOS程序原理的时候就说过程序运行后UIApplication会循环监听用户操作),UIApplication会从事件队列取出最前面的事件并分发处理,通常先分发给应用程序 Read More
posted @ 2016-02-03 11:17 星语海蓝 Views(745) Comments(0) Diggs(0) Edit
Bitcode概述 Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled ... Read More
posted @ 2016-01-26 19:24 星语海蓝 Views(278) Comments(0) Diggs(0) Edit
IOS 中的 AppDelegate.m/h 文件是很重要的呢,因为它是对 Application 的整个生命周期进行管理的。先明白,每个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显 示 UIWindow,并负责加载... Read More
posted @ 2016-01-21 12:12 星语海蓝 Views(443) Comments(0) Diggs(0) Edit
第一次接触IOS的本地通知的使用,看到别人写的一个比较详细的记录,自己整理过来,方便以后再次使用和拓展:1.创建一个本地通知,添加到系统: 1 // 初始化本地通知对象 2 UILocalNotification *notification = [[UILocalNotification alloc... Read More
posted @ 2016-01-19 16:38 星语海蓝 Views(916) Comments(0) Diggs(1) Edit
类Class中的属性property:在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个新的机制,并且要求你必须声明与之对应的实例变量,例如:@interface MyViewController :UIViewController{ UIButton *m... Read More
posted @ 2016-01-13 15:01 星语海蓝 Views(1515) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页