上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页
摘要: 在iOS开发中,为了提升用户体验,我们通常会将操作耗时的操作放在主线程之外的线程进行处理。对于正常的简单操作,我们更多的是选择代码更少的GCD,让我们专注于自己的业务逻辑开发。NSOperation在ios4后也基于GCD实现,但是相对于GCD来说可控性更强,并且可以加入操作依赖。 NSOperat 阅读全文
posted @ 2016-05-30 11:04 WFApple 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 在2013年3月21日苹果已经通知开发者,从2013年5月1日起,访问UIDIDs的程序将不再被审核通过,替代的方案是开发者应该使用“在iOS 6中介绍的Vendor或Advertising标示符”。苹果已经警告过我们uniqueIdentifier将不能再使用了,并且提供了另外两个可选的。但是在程 阅读全文
posted @ 2016-05-30 10:46 WFApple 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 将多字节整数类型的数据,从主机的字节顺序转化为网络字节顺序 #include <netinet/in.h> uint32_t htonl(uint32_t hostlong);uint16_t htons(uint16_t hostshort);uint32_t ntohl(uint32_t net 阅读全文
posted @ 2016-05-30 10:03 WFApple 阅读(1472) 评论(0) 推荐(0) 编辑
摘要: 今天在电脑上安装了WIRESHARK软件,在设置interface 时提示"There are no interfaces on which a capture can be done" 提示没有任何一个网络接口准备好。此提示明显是不对的, 我的网卡明明可以正常上网,网络接口怎么会没有准备好呢? 想 阅读全文
posted @ 2016-05-23 14:10 WFApple 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 一、首先将资源文件打包成bundle 新建工程:File -> New -> Project... -> OS X -> Framework & Library -> Bundle 我们必须借助于OS X,因为iOS框架中没有创建Bundle的模板 填写项目名称 保存位置 其实本无需这么麻烦,bun 阅读全文
posted @ 2016-05-20 14:57 WFApple 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: http://knowm.org/port-forwarding-80-to-8080-using-ipfw-on-mac-os-x/ http://blog.chinaunix.net/uid-20674714-id-90862.html 阅读全文
posted @ 2016-05-19 16:59 WFApple 阅读(719) 评论(0) 推荐(0) 编辑
摘要: http://www.jianshu.com/p/bd4c22952e01 阅读全文
posted @ 2016-05-17 15:10 WFApple 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 据说,Netscape公司当年设计SSL协议的时候,有人提过,将互联网所有链接都变成HTTPs开头的加密链接。 这个建议没有得到采纳,原因之一是HTTPs链接比不加密的HTTP链接慢很多。(另一个原因好像是,HTTPs链接默认不能缓存。) 自从我知道这个掌故以后,脑袋中就有一个观念:HTTPs链接很 阅读全文
posted @ 2016-05-16 14:36 WFApple 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 最近在研究ios的推送问题,遇到了一些问题,最终整理了一下。放在这里和大家分享APNS的推送机制首先我们看一下苹果官方给出的对ios推送机制的解释。如下图 Provider就是我们自己程序的后台服务器,APNS是Apple Push Notification Service的缩写,也就是苹果的推送服 阅读全文
posted @ 2016-05-13 05:31 WFApple 阅读(317) 评论(0) 推荐(0) 编辑
摘要: There's one situation in which you need an Ad Hoc profile, and that's when you want to test Push Notifications. If you test Push Notifications on a De 阅读全文
posted @ 2016-05-11 18:58 WFApple 阅读(513) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页