读书人

NotifiCationCenter统制使用

发布时间: 2013-07-08 14:13:00 作者: rapoo

NotifiCationCenter控制使用
NSNotificationCenter

第一种,这个只是传值,通过NSNotification获取,当然也可以直接使用obj

注册A


响应B


第二种多值传输(obj)
注册A
- (void) keyboardWillShow:(NSNotification *)aNotification{        NSDictionary *userInfo = [aNotification userInfo];}

读书人网 >移动开发

热点推荐