![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
i红人
纯屌丝,只有学习,才能进步。立志要成为一名伪FSD。
展开
-
在UIAlterView的代理方法中 点击确定时 添加一个UIView到[[UIApplication sharedApplication].keyWindow上只出现了0.5秒左右就消失的问题
昨天,遇到一个很奇葩的问题,看下面代码:-(void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ switch (buttonIndex) { case 0: { [self.navigationControll原创 2014-02-14 10:16:41 · 12133 阅读 · 2 评论 -
ios 读写plist文件,在模拟器下可行,而在真机上不行的问题bug
先看一下代码:在模拟器上调试时,打印的结果:可以看到_mainArray是能读到值的。而在真机下:_mainArray 得到的却是空值。我们再来看一下文件的存储路径:Documents 与xxx.plist之间没有 “/” .可能是模拟器在寻找路径的时候,自动为我们加上了“/”,查找。而真机上却没有原创 2014-03-19 11:01:32 · 3984 阅读 · 1 评论 -
Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
http://stackoverflow.com/questions/26189404/info-plist-utility-error-info-plist-couldnt-be-opened-because-there-is-no-suc有时候你从一些网站下载的代码编译会出现如下错误:可能原因:有可能是在删除“XXXTests”文件夹时,没有彻底原创 2014-11-26 10:44:31 · 15067 阅读 · 1 评论 -
AVAudioPlayer (crash)崩溃
在模拟器上使用AVAudioPlayer是发生了奇怪的崩溃。 原来是程序添加全局异常断点,后就会出现。解决: 将All 改为 objective-c 或者直接去掉全局断点原创 2015-03-11 09:22:34 · 3402 阅读 · 6 评论 -
OS X10.11 cocoapods不能用问题
首先,看下自己rubygems.org 镜像是否是https的。chendeMacBook-Pro:~ xxx$ gem sources -l*** CURRENT SOURCES ***https://ruby.taobao.org/ //如果是http,替换为https如果还是以前的http://ruby.taobao.org/需要替换掉:chendeMacBook-Pro:~ xxx$原创 2015-10-14 17:35:19 · 1171 阅读 · 0 评论