标签:
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFiledEditChanged:)
name:@"UITextFieldTextDidChangeNotification"
object:self.jobTextField];
- (void)textFiledEditChanged:(NSNotification *)obj {
UITextField *textField = (UITextField *)obj.object;
// 自己的业务逻辑
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
标签:
原文地址:http://www.cnblogs.com/lisen-lisen/p/4613167.html