1

I would like to run a method in my app when the keyboard shows up. Is there a predefined method or I have to create it? And how to create it?

1 Answer 1

2

You can have a notification when the keyboard is going to show up:

UIKeyboardWillShowNotification UIKeyboardDidShowNotification 

You can register the notification like this:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; 

More here.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.