When a UITextField object becomes first responder the keyboard magically appears. When it resigns first responder the keyboard magically slides away. What is causing this to happen? Is there something constantly watching in the background and makes the keyboard appear/disappear when it notices a text field becoming/losing first responder?
+1
A:
There is a chconcept called NSNotification which is responsible for keyboard appear/disappear..check the tutorial.
carthee
2010-08-11 07:29:59
So is there an NSNotification object that automatically gets created and is running in the background?
awakeFromNib
2010-08-11 07:37:14
+1
A:
You should have a look at the Notifications section in the Cocoa Fundamentals Guide. There's anything you need to know about notifications there : from definition to use cases.
carthee
2010-08-11 07:55:18