NSNotificationCenter的几种基础用法
除了用的比较多的delegate和block之外,还有就是通知。通知的功能比前面两种要强大的多,当然也不能随便滥用,否则,不知道会发生社么.
1.一般注册、发送通知
首先要注册通知
[[NSNotificationCenter
defaultCenter]addObserver:self
selector:@selector(textViewChange)
name:notifi
原创
2016-03-13 20:42:18 ·
289 阅读 ·
0 评论