随笔分类 -  iOS开发错误

这里我将我所遇到的iOS开发过程中的各种奇怪问题进行总结记录,希望对大家有用
摘要:1. 大概有四种方法: 1. runloop 阻塞主进程等待结果 2. semphaore 阻塞主进程等待结果 3. 使用XCTestExpectation 阻塞主线程等待(我用这个,xcode自带的,为啥不用) 4. 使用第三方的库函数 2. 参考stack overflow " 如何在xcode 阅读全文
posted @ 2016-04-24 10:53 一夜星辰 阅读(1081) 评论(0) 推荐(0)
摘要:病情描述: 1. viewController创建的时候勾选了xib,然后在显示的时候调用了如下语句: MTDetailDealViewController detailController = [[MTDetailDealViewController alloc]init]; detailCont 阅读全文
posted @ 2016-04-20 01:32 一夜星辰 阅读(191) 评论(0) 推荐(0)
摘要:错误症状: -(void)peripheral:(CBPeripheral *)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)err 阅读全文
posted @ 2016-01-07 14:24 一夜星辰 阅读(815) 评论(0) 推荐(0)
摘要:参考http://blog.csdn.net/wsk_123_123/article/details/46044293 阅读全文
posted @ 2016-01-04 11:24 一夜星辰 阅读(440) 评论(0) 推荐(0)
摘要:警告提示:This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will ca... 阅读全文
posted @ 2016-01-04 11:06 一夜星辰 阅读(2363) 评论(0) 推荐(0)
摘要:错误症状:OSX 10.10+Xcode5.1 无法启动或者安装应用程序到iOS 6.1 simulator错误原因: iOS Simulator 内核要使用OSX 系统内核,所以iOS Simulator 和 OSX 版本之间存在依赖关系OSX10.10 支持iOS7.1 以后的simulato... 阅读全文
posted @ 2015-12-02 23:00 一夜星辰 阅读(677) 评论(0) 推荐(0)
摘要:错误现象是:我在OSX Yosemite上同时安装了Xcode 7Beta和Xcode 6.4,然后Xcode 6.4的模拟器出现了重复版本。截图如下:解决方法是:删除该路径下的所有文件:~/Library/Developer/CoreSimulator/Devices清空回收站,然后重启xcode... 阅读全文
posted @ 2015-12-02 13:42 一夜星辰 阅读(383) 评论(0) 推荐(0)
摘要:Xcode 6 中勾选using size Classes 方法,在ViewDidLoad 方法中调用outlet 的一个myView.subviews 会为空,而myView 不会为空。storyBoard 主界面如下:代码如下:@interface ViewController ()@prope... 阅读全文
posted @ 2015-11-17 00:10 一夜星辰 阅读(231) 评论(0) 推荐(0)