怎么判断应用中UIKeyboard是否开启了?
我不想用UITextField
的delegates方法实现。
谢谢。
怎么判断应用中UIKeyboard是否开启了?
我不想用UITextField
的delegates方法实现。
谢谢。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];