Top "First-responder" questions

In Apple Cocoa programing, the first responder is the first object in a chain of NSResponder subclasses to be called upon receiving an even such as keypress, mouseclick, etc.

Why is UIKeyboardWillShowNotification called every time another TextField is selected?

I have a project that contains a UIScrollView and many UITextField inside it. For the first time I select a …

ios xcode notifications first-responder
Change UITextField background when editing begins

I'd like to change the background image of a UITextField when it becomes the firstResponder to show the user that …

iphone objective-c first-responder
Why is becomeFirstResponder not working?

I added a modal using AGWindowView. Inside the modal view (built using IB), there is a textfield. The textfield has …

ios objective-c cocoa-touch uitextfield first-responder
UISearchBar and resignFirstResponder

I have a very basic UITableView with an attached UISearchBar, and here's the flow of what happens UITableView is empty, …

iphone uitableview uisearchbar first-responder
How to activate next UITextField in a UITableView?

I am using this other SO answer for adding UITextFields to my UITableViewCells. However, I am now at a loss …

iphone ios objective-c uitableview first-responder
Find View that is the firstresponder

I would like to get the view that is the first responder, currently I have a UITableView that contains UITextFields, …

iphone ios first-responder
Make UISearchBar first responder when View Loads

I have a simple UIViewController and a UISearchBar, when the view loads I want to have the search bar become …

objective-c iphone uiviewcontroller uisearchbar first-responder
UIWebView with contentEditable (html editing), first responder handling?

I'm making an html editor component for an app (using UIWebView with contentEditable in iOS 5.0), and got stuck at how …

html uiwebview contenteditable html-editor first-responder
iOS unit test: How to set/update/examine firstResponder?

How do you write first responder unit tests? I'm trying to write a test to confirm that a method advances …

iphone ios testing ocunit first-responder
What is a formal definition of a first responder in iOS?

I understand that a first responder object is the receives a callback signal according to input activity, etc and that …

ios first-responder