![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Bug
终有丶
人生很短,岁月很长。
展开
-
App Transport Security has blocked a cleartext HTTP
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. iOS9需使用HTTPS,所以需在Info.plis原创 2016-04-28 15:23:08 · 252 阅读 · 0 评论 -
iOS "_OBJC_CLASS_$_JPUSHService", referenced from: 解决办法
原文地址:传送门这类问题通常是framework的问题, 网上有排除错误的方法 详见: http://blog.csdn.net/niepeng109/article/details/46413543 大概就是: 1. 检查Link Binary With Libraries是否缺少相应地依赖类库 2. 查看Build Settings下的Library Search Paths的引入文件是否是相...转载 2018-04-13 14:45:29 · 1805 阅读 · 0 评论 -
Treating Unicode character as whitespace
复制代码时会出现 Treating Unicode character as whitespace 的警告,可能是回车空格存在问题; 解决:将复制部分重新手写输入。原创 2018-01-17 10:26:10 · 1968 阅读 · 0 评论 -
UIImageJPEGRepresentation 使用中存在的问题
iOS上有两种转化图片的的简单方法: 1丶UIImageJPEGRepresentation(, ) 参数1:图片,参数2:压缩系数 2丶UIImagePNGRepresentation() 参数:图片 UIImageJPEGRepresentation 压缩后图片较小图片质量也无较大差异: UIImagePNGRepresentation 压缩图片的图片较大; 日常工作中推荐使原创 2017-12-18 14:16:29 · 13297 阅读 · 2 评论 -
The “Swift Language Version” (SWIFT_VERSION) build setting must be ...
创建appModel.xcdatamodeld文件,添加了一个Entity及两个Arrtibutes属性,编译提示如下错误: The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting ca原创 2017-12-07 14:16:03 · 6566 阅读 · 0 评论 -
iOS11 [[UIApplication sharedApplication].windows lastObject]
// iOS11后 [[UIApplication sharedApplication].windows lastObject] 无法获取最外层window,导致一些提示层无法显示;尝试之后发现可通过 [[UIApplication sharedApplication].windows firstObject] 来获取最外层window; // 修改如下: UIWindow *mainW原创 2017-10-30 14:09:40 · 2580 阅读 · 0 评论 -
iOS Error returned in reply
Xcode8运行提示 Error returned in reply: Connection invalid 解决方法一:当前有两个Xcode版本需高版本覆盖掉低版本xcode即可 解决方法二: 1.在强制退出中关闭xcode的所有运行程序 2.清理DerivedData执行命令 rm -rf ~/Library/Developer/Xcode/DerivedD原创 2017-09-22 09:06:15 · 326 阅读 · 0 评论 -
iOS This application is modifying...
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes. ui更新需放在主线程原创 2017-09-22 09:03:06 · 193 阅读 · 0 评论 -
Unknown class ViewController in Interface Builder file.
因为删掉了自动生成的ViewController.h/m文件,使用了自己创建的viweController, 但是在main.storyboard中有用到系统生成的ViewController.h/m文件,解决方法删掉main.storyboard, 删掉info.plist文件中main storybiard file base name。原创 2017-02-22 10:50:55 · 2408 阅读 · 0 评论 -
`AFNetworking (~> 3.1.0)` required by `Podfile`
关于这是错误提示,看到了这边文章应该会有所帮助,自己也备忘: 传送门原创 2016-12-22 14:02:36 · 1231 阅读 · 0 评论 -
Invalid JSON data: Value of required model key doutdate is null
jsonModel解析报错,在model的.m文件中添加即可 + (BOOL)propertyIsOptional:(NSString *)propertyName { return YES; }原创 2018-07-19 15:25:21 · 1737 阅读 · 0 评论