摘要: 步骤: 1.清楚 targets->Build Settings ->Provisioning Profile 内得无用得描述文件. 2.打开文件夹finder 按shift +commont+g 出现 3.输入~/Library/MobileDevice/Provisioning Pro... 阅读全文
posted @ 2015-05-25 18:04 此处应有掌声 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1.将xx.ttf字体库加入工程里面。2.在工程的xx-Info.plist文件中新添加一行Fonts provided by application,加上字体库的名称3.引用字体库的名称,设置字体:[UIFontfontWithName:@"fontname"size:24];如果不知道字体名称,... 阅读全文
posted @ 2015-05-12 11:45 此处应有掌声 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.it165.net/pro/html/201410/24804.htmlCocoapods意义体现在两个方面。 l 在引入第三方库时它可以自动为我们完成各种各样的配置,包括配置编译阶段、连接器选项、甚至是ARC环境下的-fno-objc-arc配置等。 l 第... 阅读全文
posted @ 2015-05-08 14:27 此处应有掌声 阅读(110) 评论(0) 推荐(0) 编辑
摘要: iOS集成参考: http://developer.baidu.com/wiki/index.php?title=docs/cplat/push/guideios开发文档http://push.baidu.com/doc/ios/api客户端SDK下载http://developer.baidu.c... 阅读全文
posted @ 2015-05-08 14:21 此处应有掌声 阅读(176) 评论(0) 推荐(0) 编辑
摘要: JPush说明文档JPush iOS 推送原理及问题(参考:http://blog.jpush.cn/apns/)JPush iOS 初步了解推送方式 (详解: http://docs.jpush.io/client/ios_sdk/)从上图可以看出,JPush iOS Push 包括 2 个部分,... 阅读全文
posted @ 2015-05-07 14:01 此处应有掌声 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: 在使用个推时出现这个错误 [ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your ... 阅读全文
posted @ 2015-05-05 15:39 此处应有掌声 阅读(531) 评论(0) 推荐(0) 编辑
摘要: dispatch_once可以保证代码被执行一次+(NSDateFormatter*)getDBDateFormat{ static NSDateFormatter* format; static dispatch_once_t onceToken; dispatch_once(&... 阅读全文
posted @ 2015-04-30 09:09 此处应有掌声 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 1.可以使用定时器进行延迟.- (void) timeEnough{ UIButton *btn=(UIButton*)[self.view viewWithTag:33]; btn.selected=NO;[timer invalidate]; timer=nil;}- (void) btnDon... 阅读全文
posted @ 2015-04-29 16:19 此处应有掌声 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 使用Images.xcassets设置启动图片需要注意下面几点:1.将工程中的Launch Screen.xib 文件删除,info.plist中删除 Launch screen interface...选项.2.在target中App Icon and Launch Images中设置 Laun... 阅读全文
posted @ 2015-04-28 11:23 此处应有掌声 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 一直在用xcode6开发,但项目都是在xcode5上创建的,所以一直没注意到,xcode6竟然干掉pch文件了。如何在Xcode6中添加pch(Precompile Prefix Header)?1,Command+N,打开新建文件窗口:ios->other->PCH file,创建一个pch文件:... 阅读全文
posted @ 2015-04-27 16:54 此处应有掌声 阅读(177) 评论(0) 推荐(0) 编辑