node ninja
node ninja

Reputation: 32986

UITextField, becomeFirstResponder, resignFirstResponder

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?

Upvotes: 0

Views: 1203

Answers (2)

carthee
carthee

Reputation: 110

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.

Upvotes: 1

carthee
carthee

Reputation: 110

There is a chconcept called NSNotification which is responsible for keyboard appear/disappear..check the tutorial.

Upvotes: 1

Related Questions