独狼

导航

记录一些容易忘记的属性 -- UIKeyboard

    //UIKeyboardWillShowNotification这个通知在软键盘弹出时由系统发送
    //UIKeyboardWillShowNotification 通知:键盘将要显示的通知
    //在通知中心中添加监测对象,当该对象受到UIKeyboardWillShowNotification的通知时,会调用参数二所代表的方法
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];

posted on 2014-09-24 09:29  独狼  阅读(166)  评论(0编辑  收藏  举报