广播//发送者//发送值改变的广播(通知)[[NSNotificationCenter defaultCenter]postNotificationName:@"dataChange" object:nil]; //接受者//接收广播[[NSNotification...
...ontroller:通过 "委托、目标操作、通知"实现通信UITableView,UIPickerView是支持或需要数据源的少见的Cocoa Touch类9-1,通知(消息中心)NSNotificationCenter+(NSNotificationCenter *)defaultCenter;//监听一个对象xxx;不要忘记xxx dealloc中删除对xx对象的监听10,视图类:UIView,UIViewCon...
...on *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {....................[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name:kReachabilityChangedN...
...等封装类来实现。Objective-C 2.0 开始可以使用迭代子(Enumerator),来顺序访问容器中的元素。 Notification Notification是消息通知的功能。具体使用 NSNotificationCenter 类。将需要接受通知的对象,方法,事件注册到该类上。 归档(Archive) 归档是指将对象的内存布局原样地保存到文件系统上。同样对应的由文件中的数据
...d:@"0006.png"]]; cell.selectedBackgroundView = myview; 在数字键盘上添加button: //定义一个消息中心 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotifi...