Questions tagged [becomefirstresponder]

176 questions
4
votes
2 answers

How to recognize tap over text view after it has became first responder?

When the UITextView is tapped, I want it to stay working as the first responder but I need also to fire other events. The UITapGestureRecognizer works well before the UITextView is not first responder, but after it gets focused the tap is not…
4
votes
1 answer

becomeFirstResponder slows down app when unhiding view

This is sort of a follow-up to this issue: becomeFirstResponder slows down app I'm experiencing the same problem as that poster, i.e. calling becomeFirstResponder seems to slow down my app (it hangs for maybe 1-2s). However, whereas they were…
G.S.
  • 623
  • 6
  • 22
4
votes
1 answer

shouldChangeCharactersInRange method not called after calling becomeFirstResponder

Hi i am new to the iOS, i am using several text fields in my project, so i want use becomeFirstResponder for editing done for any one of text field. it is working fine in xcode 3.2.5 but it makes problem in xcode 4.2.1 In xcode 4.2.1 after calling…
thavasidurai
  • 1,972
  • 1
  • 26
  • 51
4
votes
2 answers

make the textfield to be the first responder again

- (IBAction)textFieldDoneEditing:(id)sender { [sender resignFirstResponder]; [sender becomeFirstResponder]; } I have a UItextField object, and link the "Did End On Exit" to the "textFieldDoneEditing" action. After I press the Done button on the…
lu yuan
  • 7,207
  • 9
  • 44
  • 78
3
votes
2 answers

Keyboard hidden after becomeFirstResponder

I'm bringing focus to a UITextView after setting its .hidden property to NO. When I set the [textView becomeFirstResponder] the textView gets the little typing cursor, but the keyboard remains hidden. Any idea why? If it helps, the main view is a…
Raphael Caixeta
  • 7,808
  • 9
  • 51
  • 76
3
votes
3 answers

Redirect becomeFirstResponder to a subview

Is it possible to redirect the becomeFirstResponder from self to a subview? Here is my scenario. I create a new UIWindow, let's call it secWin, object with a UINavigationController, let's call it navCon, as the rootViewController. navCon has a…
3
votes
3 answers

UITextField embedded in an UIView does not respond to touch events

In my project i'm using a UITextField which is embedded into a plain white UIButton with rounded corners in order to create a "beautiful" text field. This code is used several times in different views so I decided to create a custom UIView for this…
3
votes
0 answers

Why changing the focus programatically on secured text box lets last character appear

Lets say I have a secured textfield and I am trying to change the focus to some other textfield on UIControlEventEditingChanged by calling BecomeFirstResponder or ResignFirstResponder then the last character is still visible I am changing the focus…
3
votes
2 answers

How to present iOS keyboard along with the modal presentation of a ViewController?

I am building a pin entry viewController very similar to the iOS one you see when you go to Settings->TouchID and it prompts you for pin. I am trying to mimic its behavior of presenting the iOS keyboard along with (at the same) of the modal…
3
votes
1 answer

iOS 10 - UITableViewController scrolls to the bottom on load

I have a subclass of UITableViewController that displays several rows (8 to be exact), where the top row is a custom cell that contains a UITextField. When the view is loaded, I have the keyboard popup immediately by calling becomeFirstResponder on…
Coder1224
  • 1,785
  • 2
  • 17
  • 21
3
votes
2 answers

UITabBarController canBecomeFirstResponder method not get called

After reading http://nshipster.com/uikeycommand/ i wanted to add navigation between tabs using arrow keys to my app. But i cuold not managed to receive key presses within UITabBarController. Same code block below works within UIViewController but…
3
votes
1 answer

UITextView becomeFirstResponder fails with iOS SDK 8.2

I tried to make Textview becomeFirstResponder but it fails. It's working fine with same code with iOS SDK 7 Don't know what's wrong with iOS SDK 8.2. I am also checking canBecomeFirstResponder too. It passes true for this but fails and returns NO…
Niks
  • 647
  • 5
  • 16
3
votes
1 answer

Cursor is blinking in UITextField but keyboard doesn't appear

I got a simple detail view with a textfield. In detail's viewController I wrote this code: - (void) viewDidAppear:(BOOL)animated{ [self.textField becomeFirstResponder]; NSLog(@"is textField 1st responder %d", [self.textField…
kas-kad
  • 3,736
  • 1
  • 26
  • 45
3
votes
2 answers

Show keyboard automatically with focus() event in UIWebView using Trigger.IO/PhoneGap

Supposedly, this has not been possible since iOS 6 where you can set the UIWebView's keyboardDisplayRequiresUserAction = NO. I'm using a html 5 webview (Trigger.IO) and building a native plugin but am having difficulty grabbing hold of the UIWebView…
Karoh
  • 2,390
  • 3
  • 23
  • 29
3
votes
1 answer

UITextField in UITableView cell becomeFirstResponder programmatically

I have a UITextField with a tag inside a prototype cell. The UITextField is set to become first responder when the UITableView is being built and a UISwitch in the cell above is turned on. This works if the app starts from scratch or if it was…
Mike73
  • 51
  • 1
  • 6
1 2
3
11 12