2012-05-14 23 views

回答

0

存在UITextInputMode類變化的通知

UITextInputCurrentInputModeDidChangeNotification 

所以添加這個通知

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardModeChange:) name:UITextInputCurrentInputModeDidChangeNotification object:nil]; 

我希望它應該ü工作。快樂編碼:)

+0

非常感謝您的回答。但是你的代碼可以捕獲改變輸入類型的事件,除了切換到數字鍵盤:(你看到其他代碼嗎?謝謝。 –