摘要: iPhone系统中的Objective-C的内存管理机制是比较灵活的,即可以拿来像C/C++一样用,也可以加个AutoreleasePool让它升级为半自动化的内存管理语言。当然,也不能拿JAVA虚拟机中的全自动化GC来比〜一,引用计数是实例对象的内存回收唯一参考引用计数(retainCount)是 阅读全文
posted @ 2015-06-05 17:05 anjing123 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 记录一下遇到的问题 1.CocoaPods 版本旧 The version of CocoaPods used to generate the lockfile is higher that the one of the current executable. Incompatibility iss 阅读全文
posted @ 2015-06-05 16:57 anjing123 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1. ViewController的didReceiveMemoryWarning怎么被调用: [supper didReceiveMemoryWarning]; 2.什么时候用delegate,什么时候用Notification? delegate针对one-to-one关系,用于sender接受 阅读全文
posted @ 2015-06-05 16:38 anjing123 阅读(279) 评论(0) 推荐(0) 编辑
摘要: NSFileManeger 文件管理器提供许多通用的文件操作,用户可以通过使用共享的文件管理对象(NSFileManager *fm = [NSFileManager defaultManager];);ios和mac os x 10.5以后,用户可以创建一个唯一的文件管理器委托对象。 文件管理器可 阅读全文
posted @ 2015-06-05 16:20 anjing123 阅读(154) 评论(0) 推荐(0) 编辑
摘要: IPhone下每个app可用的内存是被限制的,如果一个app使用的内存超过20M,则系统会向该app发送Memory Warning消息。收到此消息后,app必须正确处理,否则可能出错或者出现内存泄露。 app收到Memory Warning后会调用: UIApplication::didRecei 阅读全文
posted @ 2015-06-05 16:19 anjing123 阅读(679) 评论(0) 推荐(0) 编辑