2015年3月6日

IOS之NSThread

摘要: 初始化:1.动态方法- (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument;// 初始化线程NSThread *thread = [[NSThread alloc] initWithTarget:self ... 阅读全文

posted @ 2015-03-06 18:00 sfce 阅读(124) 评论(0) 推荐(0) 编辑

IOS之NSNotification

摘要: NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mytest:) name:@"mytest" objec... 阅读全文

posted @ 2015-03-06 17:45 sfce 阅读(113) 评论(0) 推荐(0) 编辑

ios之KVC、KVO

摘要: KVC是KeyValueCoding的简称,它是一种可以直接通过字符串的名字(key)来访问类属性的机制。而不是通过调用Setter、Getter方法访问。获取值- (id)valueForKey:(NSString *)key;- (id)valueForKeyPath:(NSString *)k... 阅读全文

posted @ 2015-03-06 17:40 sfce 阅读(164) 评论(0) 推荐(0) 编辑

导航