title: How to use UIKeyboardWillShowNotification
body: <p>I want to create a ChatView exactly like iPhone's texting app (Messages). I'm doing it programmatically and am trying to move the textView up with the keyboard. I want to do this in a function that gets called by UIKeyboardWillShowNotification. Could you help me debug this error?</p>
  
  <p>In ChatViewController.m, I set a listener for UIKeyboardWillShowNotification in the loadView function, and I set self as the textView delegate, but it crashes, saying:
  Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[ChatViewController keyboardWillShow]: unrecognized selector sent to instance</p>
  
  <p>But I define keyboardWillShow in ChatViewController.m
  Why isn't it finding that function?</p>
  
  <p>Here are the important files:</p>
  
  <p><a href="http://github.com/acani/acani-chat/blob/master/Lovers/Classes/ChatViewController.h" rel="nofollow noreferrer">http://github.com/acani/acani-chat/blob/master/Lovers/Classes/ChatViewController.h</a>
  <a href="http://github.com/acani/acani-chat/blob/master/Lovers/Classes/ChatViewController.m" rel="nofollow noreferrer">http://github.com/acani/acani-chat/blob/master/Lovers/Classes/ChatViewController.m</a></p>
  
  <p>I commented out the listeners so that it doesn't crash.</p>
  
  <p>Feel free to git clone git@github.com:acani/acani-chat.git</p>
  
  <p>Thanks!</p>