报错:Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set?原因分析:在S...
分类:
移动开发 时间:
2015-08-03 18:41:13
阅读次数:
201
首先;1. 自定义一个UIView的子类,然后在这个类里,注册了一个消息中心, addObserve,
当我这个类重新创建一个UIview的时候, 就会神奇的crash, 后来发现...是因为这个消息中心没有被移除的原因
// 解决方法: 在注册通知的那个类对应的dealloc 写上
[[NSNotificationCenter
defaultCenter] removeObs...
分类:
移动开发 时间:
2015-08-02 18:22:21
阅读次数:
292
这个错误从字面上来看就是有一个实例由于被observing而无法被释放。具体原因可能是该对象添加了一个oberver。所以释放的时候要先取消observer。具体方法是在 dealloc 方法中:- (void)dealloc { [object removeObserver:self for...
分类:
移动开发 时间:
2015-08-01 06:25:04
阅读次数:
128
-(void)test{ NSObject* person; NSLog(@"1:%@",person); [selfinitPerson:person]; NSLog(@"2:%@",person);}-(void)initPerson:(NSObject *)person{ if (pe...
分类:
移动开发 时间:
2015-07-15 10:57:41
阅读次数:
131
团队开发容易出现的一个恶心的bug 就是突然发现自己的iPhone工程变成了my mac 不能使用了,这时我们需要这样来解决...
分类:
移动开发 时间:
2015-06-16 19:23:31
阅读次数:
306
1. mutating method sent to immutable object'从字面上理解:可变的消息发给了不可变的对象。比如NSDictionary类型的对象调用setValue方法.应该把NSDictionary 改成NSMutableDictionary类型。2.Local decl...
分类:
移动开发 时间:
2015-01-23 10:45:23
阅读次数:
179
在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0' ,就是说代码签名证书不对劲。 解决方案,1.选择工程->Build Settings -> Code Sign...
分类:
移动开发 时间:
2015-01-06 11:50:00
阅读次数:
141
[2013-05-31 16:28:09 - xxx_jilin] libpng error: Not a PNG file[2013-05-31 16:36:19 - xxx_jilin] D:\xxxxxxx\bill_baselist.xml:2: error: Error: No resou...
分类:
移动开发 时间:
2014-12-07 16:15:31
阅读次数:
187
1、fatal error: file '/Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Li...
分类:
移动开发 时间:
2014-12-03 18:29:21
阅读次数:
235