Linked Questions

45 votes
4 answers
33k views

In Mac OS X, you can find the first responder like this: [[self window] firstResponder] Is there any way of doing it in iOS? Or do you need to enumerate the child controls and send an ...
Tommy Herbert's user avatar
1 vote
2 answers
5k views

I am developing an app for iPod/iPhone and I am trying to determine which control has focus. I am new to XCode so my terminology may be incorrect, but I am looking for the object (control) where the ...
LilMoke's user avatar
  • 3,534
1 vote
0 answers
2k views

I have three textfields with 1,2,3 tags respectively. After pressing a button how do I get the textfield which has focus on. For instance, I am tying in textfield tag 1 and then press a button, how ...
Alex's user avatar
  • 105
352 votes
44 answers
303k views

I have an app that has a text field on the lower half of the view. This means that when I go to type in the text field the keyboard covers the textfield. How would I go about moving the view upwards ...
Alex Catchpole's user avatar
286 votes
42 answers
255k views

I've run into a couple of cases now where it would be convenient to be able to find the "topmost" view controller (the one responsible for the current view), but haven't found a way to do it. ...
Hot Licks's user avatar
  • 47.8k
173 votes
25 answers
208k views

I am trying to build an input screen for the iPhone. The screen has a number of input fields. Most of them on the top of the screen, but two fields are at the bottom. When the user tries to edit the ...
John Allijn's user avatar
  • 1,955
105 votes
29 answers
92k views

I have a UITableView with UITextFields as cells. I would like to dismiss the keyboard when the background of the UITableView is touched. I'm trying to do this by creating a UIButton the size of the ...
Hua-Ying's user avatar
  • 3,156
92 votes
12 answers
66k views

I begin my project with a split view controller as initial view controller and start it automatically from storyboard. Generally, an app with this UI have one and only one split view controller as ...
Vincent Saluzzo's user avatar
27 votes
18 answers
61k views

I have filled my view with ScrollView (same size as the view) and I'm stuck at how to resign first responder when user tap elsewhere in the View (or the scrollview). Any idea on how to do that ? I'm ...
Stephane's user avatar
  • 5,116
40 votes
13 answers
52k views

I've seen posts around here that suggest that UIScrollViews should automatically scroll if a subview UITextField becomes the first responder; however, I can't figure out how to get this to work. ...
Nosrettap's user avatar
  • 11.4k
22 votes
7 answers
61k views

I've created a custom UIViewController with one UITextField on Storyboard. On viewDidLoad, I set the UITextFIeld to becomeFirstResponder, nothing happened (no keyboards popped up). I then tried ...
blee908's user avatar
  • 12.6k
19 votes
6 answers
21k views

Does anybody knows, can I get the current input language and/or keyboard layout in iPhone application? Can I also get a notification when input language was changed?
user avatar
13 votes
6 answers
17k views

Is it possible to get the currently active UITextField or UITextView in a UIView, so I can hide the keyboard with [text resignFirstResponder];?
Tyilo's user avatar
  • 30.4k
19 votes
3 answers
9k views

According to the iOS documentation, the responder chain is used to pass touch events "up the chain". It's also used for actions generated by controls. Fine. What I really would like to do is send a ...
Philippe Leybaert's user avatar
9 votes
2 answers
11k views

I would like to find the first responder view in a window. To do this, I would like to implement a category like this: @implementation NSView (ViewExtensions) - (NSView *)findFirstResponder { ...
A A's user avatar
  • 137

15 30 50 per page