![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios开发中遇到的错误
DiannaWong
这个作者很懒,什么都没留下…
展开
-
Property with 'retain (or strong)' attribute must be of object type 解决方法
今天做了一个单例的练习,创建继承于NSObject的视图控制器,在创建UIColor的时候出现以下错误 Property with 'retain (or strong)' attribute must be of object type Unknown type name 'UIColor 此报错在导入#import 之后原创 2016-07-25 14:05:58 · 5082 阅读 · 0 评论 -
真机调试错误--Xcode cannot launch 项目名字 on iPhone because the device is locked
Xcode cannot launch 项目名字 on iPhone because the device is locked. 如下图 解决方法1:锁屏状态可能引发次错误,先开屏,然后运行工程。 解决方法2: 开屏后仍提示上面错误,请按下面步骤方可解决问题原创 2016-07-21 11:22:37 · 10277 阅读 · 0 评论 -
ios开发网络请求出现:App Transport Security has blocked a cleartext HTTP (Xcode 7.3.1关键字有所变化)
错误提示: 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.原创 2016-07-07 21:24:13 · 260 阅读 · 0 评论 -
真机调试出现: linker command failed with exit code 1 (use -v to see invocation)
真机调试出现: linker command failed with exit code 1 (use -v to see invocation) 解决方法:Bulid Settings - Build Options -Enable Bitcode 设置为“No”.原创 2016-08-08 10:18:28 · 721 阅读 · 0 评论 -
Xcode 真机调试:While reading /Users/wangan/Documents/..../bg.png pngcrush caught libpn
While reading /Users/wangan/Documents/information复制/打地鼠复制/归档/bg.png pngcrush caught libpng error: Not a PNG file.. 此错误是因为.png文件是从.jpg手动改,模拟器上运行不会报错,但是真机是不识别这种.png。原创 2016-08-09 10:56:45 · 608 阅读 · 0 评论 -
Xcode 真机调试: AVAudioPlayer 模拟器有声音,真机耳机有声音,扬音器没有声音的解决办法
Xcode 真机调试:AVAudioPlayer 模拟器有声音,真机耳机有声音,扬音器没有声音解决办法 1.在创建:AVAudioPlayer前,加入以下代码 AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCate原创 2016-08-09 14:06:49 · 2807 阅读 · 0 评论 -
ios8的UIScrollview 模拟器向下偏移了64个点
ios8的UIScrollview 模拟器向下偏移了64个点 解决冲突 禁止系统偏移 vc.automaticallyadjustsScrollviewInsets =NO原创 2016-08-22 15:21:41 · 561 阅读 · 0 评论 -
iOS7.1 Xcode7运行时上下黑边的解决办法
4s下运行,还是好好的。 Retina(3.5-inch): 一到5以上的屏幕,就变成了这样: Retina(4-inch): 解决方法: 添加Default.png、Default-568h@2x.png、Default@2x.png三张图片进来,可以加到Supporting Files里。 就加下面三张纯黑的图片,添加后再运行,就没问题了。 De转载 2016-08-14 16:57:49 · 249 阅读 · 0 评论