iphone - How to use UIKeyboardWillShowNotification -


I really want to make a Twitter look like the iPhone's texting app. I am programmable to it and am trying to see the text on the keyboard. I want to do this in a function called UIKeyboardWillShowNotification? You can help me debug this error

In ChatViewController.m, I have a listener set in the loadView function for UIKeyboardWillShowNotification, and I have set myself as a TextView rep, but it says crashes : The application did not end the exception to 'NSInvalidArgumentException', the reason: '*** - [ChatViewController keyboardWillShow]: for non-recognized selector example

sent but I defined keyboardWillShow in ChatViewController.m Why is that ceremony Can not find

Here are the important files.

I have commented outside the audience so that it is not a accident

feel free git to clone git @ github.com: acani / acani -chat.git

thanks

lines 120 and 121 which you commented on , But I think that this does not mean there is no other context for subscribing to notifications, when you pass the selector object-colon (:) in the message names. Has its own name. Therefore, you are missing a trailing colon to selector you are passing in. That's fine, and that will get rid of your error.

In addition, you should consider making a call to removeObserver: when your view goes away (see the download).


Comments