摘要:
NSNotificationCenter消息通信机制介绍(KVO)作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(mytest:)name:@" mytest"object:nil];参数介绍:addObserver: 观察者,即在什么地方接收通知; selector: 收到通知后调用何种方法; name: 通知的名字,也是通知的唯一标示,编译器就通过这个找到通知 阅读全文
posted @ 2013-08-28 16:41 晨时雨 阅读(295) 评论(0) 推荐(0)
浙公网安备 33010602011771号