转载自:http://blog.sina.com.cn/s/blog_4adf31ea0100npdj.html
1、自定义消息
定义一个方法
-(void) { } |
对象注册,并关连消息
|
调用
|
2、注册键盘升启关闭消息
//键盘升起
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotifi
//键盘降下 |
另:加上我的通知实现: