NSNotificationCenter 用法
摘要:
1. 定义一个方法update2. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update) name:@"update" object:nil]3. 在要发出通知消息的地方[[NSNotificationCenter defaultCenter] postNotificationName:@"update" object:nil]; 阅读全文
posted @ 2011-04-06 16:05
火星人驾到
阅读(216)
评论(0)
推荐(0)
浙公网安备 33010602011771号