摘要: // 开启图形上下文UIGraphicsBeginImageContextWithOptions(image.size, NO, 0);// 剪裁 UIBezierPath *path=[UIBezierPath bezierPathWithArcCenter:CGPointMake(image.s 阅读全文
posted @ 2016-07-28 10:42 小C酱 阅读(114) 评论(0) 推荐(0)
摘要: 发布的用distribution debug的用development, debug是调试模式, 除非需要日志, 内部测试的时候, 才要debug模式的. release的用distribution 阅读全文
posted @ 2016-07-22 10:38 小C酱 阅读(301) 评论(0) 推荐(0)
摘要: Q1: dyld: Library not loaded: @rpath/libswiftCore.dylib1. 退出 Xcode2. 重启电脑3. 找到 这个 DerivedData 文件夹 删除 (路径: ~/Library/Developer/Xcode/DerivedData)4. 删除这 阅读全文
posted @ 2016-07-22 10:08 小C酱 阅读(162) 评论(0) 推荐(0)
摘要: cert: openssl x509 -in aps_development\ \(8\).cer -inform der -out pushDeveCerTopem.pem key: openssl pkcs12 -nocerts -out pushDeveP12Topem.pem -in Dev 阅读全文
posted @ 2016-07-22 09:52 小C酱 阅读(249) 评论(0) 推荐(0)
摘要: // 1. 文件管理者NSFileManager *mgr = [NSFileManager defaultManager];// 2. 缓存路径NSString *caches = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NS 阅读全文
posted @ 2016-07-14 17:08 小C酱 阅读(194) 评论(0) 推荐(0)
摘要: UIUserNotificationSettings *settings = [[UIApplication sharedApplication] currentUserNotificationSettings];UIUserNotificationType type = settings.type 阅读全文
posted @ 2016-07-13 19:13 小C酱 阅读(244) 评论(0) 推荐(0)
摘要: 方法一. -(CGRect)imageRectForContentRect:(CGRect)contentRect { return CGRectMake(self.width - kImageW, 0, kImageW, self.height);}-(CGRect)titleRectForCon 阅读全文
posted @ 2016-07-12 17:28 小C酱 阅读(401) 评论(0) 推荐(0)
摘要: iOS最大推送消息长度 官方要求是256个字节 实际测试为1005个字节 在iPhone6上测试 锁屏时收到消息时只显示76个汉字,剩下的被隐藏 程序进入后台时只显示47个汉字,剩下的被隐藏 iOS最大推送消息长度 官方要求是256个字节 实际测试为1005个字节 在iPhone6上测试 锁屏时收到 阅读全文
posted @ 2016-07-12 09:49 小C酱 阅读(592) 评论(0) 推荐(0)
摘要: 1. 添加本地js文件, 并配置head中的属性 function increaseMaxZoomFactor() { var element = document.createElement('meta'); element.name = "viewport"; element.content = 阅读全文
posted @ 2016-07-12 09:44 小C酱 阅读(169) 评论(0) 推荐(0)
摘要: 出现error: Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:] 需要处理urlString的编码 urlString = [urlString stringB 阅读全文
posted @ 2016-07-05 11:08 小C酱 阅读(289) 评论(0) 推荐(0)