Questions tagged [becomefirstresponder]
176 questions
0
votes
3 answers
how to dismiss a keyboard when there is no textfield to resignFirstResponder
in the following scenario clicking on the pencil turns the iz 1 text to be editable by making it becomeFirstResponder and the keyboard opens, I wish to close the keyboard when clicking on the "empty rows" or iz2.
how can i do that?
I've tried…

liv a
- 3,232
- 6
- 35
- 76
0
votes
2 answers
When textfield become first responder, gesture recogniser not responding, even after resign
I've probably missed something...
First, I inherited from UITextField and added a Tap gesture recogniser to a UITextField (in the designated initialiser):
UITapGestureRecognizer * ges = [[UITapGestureRecognizer alloc] initWithTarget:self…

Yony
- 680
- 1
- 9
- 20
0
votes
1 answer
UITextView becomes first responder but the pointer doesn't go there
Ok so I have a rather weird issue: My UITextView becomes the first responder and I can tell because the keyboard appears, but what happens is that the pointer doesn't show up and the text can't be edited even if you type. This is the only UITextView…

isklikas
- 190
- 2
- 16
0
votes
1 answer
Using becomeFirstResponder causes cancel button to not work
I have a UISearchDisplayController (searchDisplayCtr) and a UISearchBar (searchBar). I am trying to give focus to the search bar and bring up the keyboard when I click the search icon in the alphabet scroll on the right. If I…

Shay
- 237
- 1
- 5
- 12
0
votes
1 answer
Make UITextField first responder
In a unit test I am trying to call becomeFirstResponder method on a UITextField, but I am getting NO i.e. its not becoming the first responder.
The code looks as below:
UITextField *textField = [self.controller.searchBar valueForKey:…

tech_human
- 6,592
- 16
- 65
- 107
0
votes
1 answer
How can I get noticed when subclassed NSSecureTextField get focus each time?
I subclassed NSSecureTextField, and overrided -(BOOL)becomeFirstResponder,but it only works well when my custom NSSecureTextField get focus at the first time.

Gaojin
- 1
- 2
0
votes
2 answers
UIAlertView doesn't slide up Automatically when keyboard appears on becomeFirstResponder
I have subclassed UIAlertView and inside which I am showing a textField which takes the input. When user clicks on textField the keyboard shows up and UIAlertView moves up to adjust for keyboard. But when I do [textField becomeFirstResponder] in…

nefarianblack
- 802
- 8
- 16
0
votes
3 answers
UItextfields autofocus
i have 6 textfields named digit1,digit2..etc upto digit6 added as a subview over a view. i want the digit2 textfield to autofocus once the user enters a digit in the digit1 textfield and similarly digit3 should autofocus when a digit is entered in…

Karthick
- 382
- 1
- 3
- 23
0
votes
1 answer
iOS UITextField can't becomeFirstResponder multiple times
I have a UITableView with sections where when you tap on a section, the section expands and there are options to choose from or you can insert your own option via a UITextField in one of the UITableViewCells. For that cell, I have this code in…

user1529956
- 735
- 2
- 10
- 24
0
votes
0 answers
Using becomeFirstResponder on a new UITextField
I am trying to programmatically set the focus on a new UITextField that I created using becomeFirstResponder. Is there any other way?
-(void) editPlayerName
{
lblPLayerName.visible = FALSE;
NSString* fontNm = @"Chalkduster";
…

Matthew Little
- 43
- 7
0
votes
3 answers
Setting text to the UISearchBar when its firstresponder with controller change works weird
In my app i have UITextField on view of VC1(UIViewController). When i change text in textfield i call pushing of another controller VC2 with UISearchBar on its view. After pushing im assigning UISearchBar text to the textfield text from VC1.
On xib…

Valerii Pavlov
- 1,986
- 1
- 19
- 30
0
votes
1 answer
UITextField move Cursor using tab key
I am creating a sample web application on my iphone... In that application the main page is login page....Users enter their user name and password in the textfield (UITextField), it will verified by program.
My problem is I want to move cursor from…
dragon
0
votes
1 answer
UITextField keyboard dismissal behaviour different in iOS 6
I have some simple code that moves the 'firstResponder' between UITextFields by calling 'becomeFirstResponder' on each field in turn.
In iOS 5, the keyboard is shown as constantly, until the final textfield where resignFirstResponder is…

Snips
- 6,575
- 7
- 40
- 64
0
votes
1 answer
iOS UITextField custom keyboard
I've a custom keyboard view on my app positioned at the bottom of my screen, it's based on Fabrizio Prosperi's FPNumberPadView.
I also have a couple of UITextFields, I want this keyboard to ALWAYS be on screen, whether a textfield has the focus or…

David Homes
- 2,725
- 8
- 33
- 53
0
votes
1 answer
How to BecomeFirstResponder UITextField in UITableView
There are many same questions on stackOverflow.
But I can't resolve this problem.
How to becomeFirstResponder UITextField in UITableView?
I want to do like a below.
Push edit button, then focus on UITextField in…

Tarou
- 57
- 7