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,544
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
9 votes
4 answers
4k views

In my view controller I'm subscribed to UIKeyboardWillShowNotification: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(...
Andrey Chernukha's user avatar
8 votes
3 answers
8k views

I have a simple UICollectionView based app - one UICollectionView and a NSMutableArray based data model for simplicity. I can delete cells with no problem via the didSelectItemAtIndexPath: delegate ...
melps's user avatar
  • 1,247
6 votes
5 answers
9k views

If you have several text fields on the screen, and the keyboard pops up for each one when they are tapped, what if you want to programmatically hide the keyboard, or resign first responder, but you ...
johnbakers's user avatar
  • 24.9k
8 votes
4 answers
3k views

I have a custom View (NotifyView) added on UIWindow with a dismiss button(which remove it from UIWindow). This view is added when a PUSH notification comes in didReceiveRemoteNotification there are ...
Saurabh Passolia's user avatar
7 votes
3 answers
3k views

I am trying to hide the keyboard in my SplitView application (because it covers over part of the root menu). However, the only thing I can find is how to hide the keyboard after a textfield has been ...
BloonsTowerDefence's user avatar
4 votes
8 answers
5k views

I have a Customized UIAlertView.I have a UITextField in that AlertView, which becomes the firstResponder as soon as it is shown. Now I need to dismiss the keyboard for that UITextField when user ...
rkb's user avatar
  • 11.3k
3 votes
1 answer
2k views

In my project I have several pages with many UITextField-s. So I figured it would be better to create an utility method named hideKeyboard which would work in any case. Here is my solution, but ...
vdd's user avatar
  • 362
6 votes
2 answers
4k views

I have a dynamic number of UITextFields which all have an inputAccessoryView. This is composed of a UIToolbar which has a button on it. When this button is pressed it calls a method, however, within ...
user avatar
9 votes
2 answers
5k views

I have an NSTextField that I would like to enable "as-you-type" spell checking. When I load my application I can do this from the Menu Bar > Edit > Spelling and Grammar > Check Spelling While Typing. ...
Luke's user avatar
  • 6,345
4 votes
4 answers
4k views

I have a UITableView containing in each cell a UITextField. When the user clicks on the UITextField, as expected, the keyboard will popup. I have implemented in my delegate tableView: ...
CristiC's user avatar
  • 22.7k
2 votes
4 answers
9k views

Is there any way to make a UIView resign its first responder status when the user taps outside of the view bounds?
indragie's user avatar
  • 18.2k
1 vote
2 answers
1k views

I have a problem with the iOS keyboard. I have a UITextField inside a UITableViewCell. When tapping on another TableViewCell within the same TableView, I want to dismiss the keyboard before showing a ...
user avatar
9 votes
2 answers
1k views

I have a UIPageViewController. One page has a single button, and the other page has a UITextField with a button. When the page scrolls to the view with the field, I'd like it to becomeFirstResponder ...
dclowd9901's user avatar
  • 6,846
12 votes
1 answer
3k views

I have a form screen with multiple input fields that are contained inside UITableView. If a user connects bluetooth keyboard then he is able to press "Tab" key. The problem with that is ...
Centurion's user avatar
  • 14.3k
7 votes
2 answers
2k views

I present UIAlertController action sheet from my UIViewController: UIAlertController sheet = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:...
anna's user avatar
  • 2,713
0 votes
3 answers
3k views

I have a page with 5 UITextView objects. I use the textViewDidBeginEditing: method to animate the observationComment text box which works fine. But now I want to do the same for the other 4, but I can'...
RGriffiths's user avatar
  • 6,020
2 votes
1 answer
2k views

Very beginner obj-c question. Is it a possibility to ask about who is first responder at the moment? I have a tableView with four custom cells and with textfield in every cell. Link I tagged ...
Olex's user avatar
  • 1,674
1 vote
1 answer
3k views

I have a UITableView with some cells containing UITextField objects and others with UIButton objects. When one of the textFields is first responder (keyboard showing) i am having trouble resigning its ...
KDaker's user avatar
  • 5,909
2 votes
2 answers
1k views

I'm using an tableView with custom cells. When I want to display another view using the pushViewController function of the navigationController I loop through the textfields and call ...
HansPinckaers's user avatar
3 votes
1 answer
1k views

In my app, I press a button and it pulls up a modal presentation sheet (for iPad). Within this modal view I have a scrollview within my main view, and 1 text field within my scroll view. view ...
Josue Espinosa's user avatar
2 votes
1 answer
2k views

So I have a app that is webview based. I have made some keyboard modifications (not the issue, removed them all for troubleshooting). On the iPhone 6+ simulator, when in landscape mode, if something ...
ChrisOSX's user avatar
  • 744
1 vote
1 answer
972 views

I'm interested in doing something similar to this, however the component subviews of MFMessageComposeViewController are a much different than MFMailComposeViewController. I figured out how to set ...
ThaDon's user avatar
  • 8,096
1 vote
2 answers
2k views

Possible Duplicate: Dismiss keyboard by touching background of UITableView How do I make the keyboard go away when the user clicks somewhere else? Note: I know how to make the keyboard disappear ...
Matthew's user avatar
  • 21
1 vote
1 answer
1k views

I have a tableview controller under a navigation controller. Some of my table cells contain text fields, so when I tap on them, a keyboard will show up and automatically resize (shrink) the bounds of ...
Rollin_s's user avatar
  • 1,983
4 votes
2 answers
733 views

The responder chain is cool. Particularly, being able to send custom actions to the first responder that will bubble up to anyone else that might be interested: [[UIApplication sharedApplication] ...
Benjohn's user avatar
  • 13.9k
1 vote
2 answers
704 views

In my iOS app I have several UIElements that can process user input: textfields, editable webviews, etc. each time I write something into these UIElements the keyboard (obviously) will come up. Before ...
Zoltan Varadi's user avatar
0 votes
2 answers
695 views

I have a few UITextFields (within UITableViewCells) on my UIView with a "Save" UIButton. I want to do some basic validation on the UITextFields when the user clicks the "Save" button. I have ...
El Guapo's user avatar
  • 5,791
2 votes
2 answers
817 views

I want a UITextField to be sent the resignFirstResponder message if it is being edited and a user touches elsewhere on the screen. Since there are several text fields I need a way to programmatically ...
Jacob Lyles's user avatar
  • 10.5k
1 vote
1 answer
533 views

Basically I want to get a list of action targets for a UIButton. I have gone through this and my question is slightly different because I do not know what the target is. All I have is a UIButton ...
TorukMakto's user avatar
  • 2,080
0 votes
3 answers
257 views

I have multiple UITextFields and i need to move view up when keyboard appears. But I need to it only for 3 of bottom fields and doesn't want to move view for other field on top. I use this code, but ...
user3132964's user avatar
2 votes
3 answers
446 views

I have a UITextView with scrolling disabled. It is inside a UIScrollView. If I type "fffs" a *little blue box appears. If I scroll while that box is displayed, the box doesn't disappear, it just **...
eselk's user avatar
  • 6,914
0 votes
3 answers
620 views

I have tableview with custom cells.The cell is having 2 textfields.From viewcontroller i need to find the changed text in that textfield. if i use * (BOOL)textField:(UITextField *)textField ...
Rakesh's user avatar
  • 1
0 votes
3 answers
547 views

There are similar questions but they are all about cases when they know which view is editing. In my case I have a local notification and I want to hide keyboard when app becomes active with it. In ...
Vyachaslav Gerchicov's user avatar
1 vote
2 answers
467 views

I having trouble in understanding First Responder. My Understanding is as follows. First Responder is the first object in the responder chain which gets first oppurtunity to handle Any UIEvent. UIKit ...
Sudhir kumar's user avatar
0 votes
2 answers
288 views

@Luda's answer is a great answer, but I got stuck when I needed to use it for multiple text fields so I edited it as the following: First, I get IBOutlets for each one of my textFields, say: ...
learner's user avatar
  • 11.9k

15 30 50 per page