摘要: 1 setValue: forKey:的定义@interface NSMutableDictionary(NSKeyValueCoding)/* Send -setObject:forKey: to the receiver, unless the value is nil, in which ca... 阅读全文
posted @ 2016-01-07 17:40 ItsApe 阅读(267) 评论(0) 推荐(0) 编辑
摘要: NSSet到底什么类型,其实它和NSArray功能性质一样,用于存储对象,属于集合;NSSet , NSMutableSet类声明编程接口对象,无序的集合,在内存中存储方式是不连续的,不像NSArray(是有序的集合)类声明编程接口对象是有序集合,在内存中存储位置是连续的; NSSet和我们常... 阅读全文
posted @ 2016-01-07 17:37 ItsApe 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 函数类型 (* 函数指针变量)() ; //指向函数的入口地址一个函数是若干语句的集合 , 经编译后存储在函数代码存储区 , 并占有一片连续的存储空间 ,对函数指针只能用函数名赋值而无其他运算#includeint max(int x ,int y);int main(){int (* p)()... 阅读全文
posted @ 2016-01-07 17:28 ItsApe 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 在ARC项目中使用performSelector:withObject:函数出现“performSelector may cause a leak because its selector is unknown”。在stackoverflow找到了一个解决方案,地址:http://stackover... 阅读全文
posted @ 2016-01-07 17:06 ItsApe 阅读(280) 评论(0) 推荐(0) 编辑