Questions tagged [resignfirstresponder]

A UIResponder method added for handling remote-control events. for iOS 4 and iOS4+

When the user taps a control that can accept first responder status, that control is sent the becomeFirstResponder message. Until another control becomes the first responder or the current control is sent the resignFirstResponder message, that control will keep this status and receive keyboard and shake input.

170 questions
1
vote
1 answer

Resign First Responder from another View Controller

I have a weird case where I'm using the awesome SWRevealViewController from John Lluch to have 2 side navigation controllers (like the Facebook app) that slide out to the left and the right when a UIBarButtonItem is touched. However - I need the…
Tommy Nicholas
  • 1,133
  • 5
  • 20
  • 31
1
vote
1 answer

resignFirstResponder Leaves Keyboard Behind

iPhone app. I have a simple view with UITextView as first responder. I resign first responder and pop to the previous controller but the keyboard stays. Textview doesn't even exist anymore but the keyboard is still visible. The controller that I pop…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
1
vote
1 answer

UITextField ResignFirstResponder crash on UIScrollView

so my problem is this, i have an UIScrollView in a ViewController and i have added a childViewController to this ViewController and added the childViewController view to the UIScrollView (managed by the container ViewController) .the…
1
vote
3 answers

UITextField inside UITextView dimiss Keyboard all at once

I have this setup: A main UIView contains an UITextView that has a UITextField as subview. When I dismiss the the keyboard from the UITextField using resignFirstResponder. The keyboard is dismissed. But it animates back again for the…
user523234
  • 14,323
  • 10
  • 62
  • 102
1
vote
1 answer

Can't type in UITextField if presentViewController while editing

I have a ConfigureViewController that contains some UIButtons and a UITextField * MyTextField. Each of the buttons, when pressed, brings up a dialog-style viewcontroller using presentViewController:animated:completion:. However, if I tap one of…
aeternusrahl
  • 52
  • 1
  • 6
1
vote
3 answers

ECSlidingViewController resignFirstResponder when page slide

I need resignFirstResponder when a page slide with ECSlidingViewController. If i use UIPanGestureRecognizer for that. Thats override ECSlidingViewController and cant slide page after use that.
1
vote
1 answer

iOS: Finding out who is first responder on a dynamically changed UITableView

I have a UITableView which have custom cells with UITextFields in them. My UITableView is defined on my MainViewController, while my cells are defined in the CustomCellclass. Each time I press a button, a new cell is created. I am having trouble…
Fabio
  • 3,015
  • 2
  • 29
  • 49
1
vote
2 answers

Making UITextField from another class resign first responder

I have an app which has a UITableView that uses custom cells, which I created a new class for, CustomCell. A new cell is created every time a press a certain button, and every cell has a UITextField. I want to know how do I make the UITextField in a…
Fabio
  • 3,015
  • 2
  • 29
  • 49
1
vote
5 answers

Keyboard is not resigning

Sorry for asking such a stupid question here. Actually i have a list of textfield in which i am moving to next textfield by clicking on next button. Its working fine but in that textfields one is for date field and for that i am using date picker as…
Sawant
  • 395
  • 6
  • 22
1
vote
0 answers

Overriding resignFirstResponder fails

Trying to override resignFirstResponder methode of UISearchBar in order to make Cancel button always enabled: @interface UISearchBar(alwaysEnableCancelButton) - (BOOL)resignFirstResponder; @end @implementation…
Artem Sultan
  • 459
  • 4
  • 10
1
vote
1 answer

UI keyboard not appearing when UI textfield tapped after model to a different view controller

Ok. So I have been testing out a simple application on xcode to become familiar with the platform, but I've come across an interesting situation. Using storyboard, I've dragged two view controllers that are connected by buttons by segues. They both…
1
vote
2 answers

Xcode - setFocus on a text field, becomeFirstResponder isn't enough

At the moment, I trigger a method on 'Did End On Exit' in my app (I'm aware that this may not be the greatest way of doing it but I'm very new to Objective C and Xcode for that matter and I'm simply doing what feels comfortable to me). This method…
Creights
  • 907
  • 1
  • 12
  • 25
0
votes
3 answers

iOS: UIImagePickerController and ResignFirstResponder

I have an application that allows the user to select a photo from their camera roll, and display it in a UIImageView. But, after they tap on which image they would like to display, the camera roll's view does not disappear. So, I figured that I…
Henry F
  • 4,960
  • 11
  • 55
  • 98
0
votes
3 answers

ResignFirstResponder in ABNewPersonViewController after editing

On a class that subclasses ABNewPersonViewController in edit mode, I am loading a transparent view(xib file). When I am doing some edits, the keyboard pops up and even after I am loading the next view, the keyboard won't dismiss. Where should I be…
Xavi Valero
  • 2,047
  • 7
  • 42
  • 80
0
votes
2 answers

Why won't text fields respond to hiding the keyboard?

This is my code: - (BOOL) textFieldShouldReturn:(UITextField *)textField { [txtSiteDesc resignFirstResponder]; [txtDesc resignFirstResponder]; [ssFS resignFirstResponder]; return YES; } This is the .h file: #import…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120