Questions tagged [becomefirstresponder]

176 questions
0
votes
1 answer

UITableViewCell won't become first responder (Showing UIMenuController on cell gesture)

I have an application with a UITabBar. Every tab is a UINavigationController with several UIViewControllers inside. One of those View Controllers contains a UITableView, and I want to display a floating menu for deleting the long pressed…
momo
  • 3,404
  • 6
  • 37
  • 66
0
votes
2 answers

Set Frame of MKMapView causes resignFirstResponder, but only on iPad in Landscape with a Split Keyboard

This is a little weird and I'm not sure what the heck is going on. I'm using a MKMapView that has a custom annotation on it. In that annotation I have a text field that is editable. When the user taps on the field, the keyboard comes up and I…
Aaron Hayman
  • 8,492
  • 2
  • 36
  • 63
0
votes
1 answer

Incorrect indexPath against UITableView after calling reloadData from textFieldDidEndEditing

So I'm trying to emulate the way in which the standard Apple code works on the contacts app when managing telephone numbers. Specifically here, I'm working on deleting a row from a tableview if its empty and the user navigates to any other row My…
0
votes
2 answers

UITextView won't resignFirstResponder so another can becomeFirstResponder

I have a toolbar in my UITextfields' inputAccessoryView. If the 'next' button is hit it makes the next textfield in an orderedSet of all my textfields become the first responder. THAT works perfectly. BUT I can't get the 'previous' textfield to…
Will Larche
  • 3,119
  • 7
  • 26
  • 34
0
votes
1 answer

How to activate the keyboard from a UITextView on a (secondary) UIWindow

My iPhone app (based on the "Single View Application" of Xcode) has a UITextView (say: myTextView) that I want the user to be able to edit. I was setting it to editable, and all was working fine (I didn't even have to invoke…
Gik
  • 528
  • 5
  • 18
-1
votes
1 answer

isFirstResponder is false even after becomeFirstResponder is true

I'm debugging code to see why a WKWebView's instance doesn't become the firstResponder by doing the following: override func becomeFirstResponder() -> Bool { let becomeFirstResponserResponse = super.becomeFirstResponder() …
Kunal Shah
  • 1,071
  • 9
  • 24
-1
votes
1 answer

UITextField becomeFirstResponder does not work

I have a listview on the bottom part of the screen and a 4 field entry form at the top part of the screen. When I tap on the list item I would like to set focus to the 1st text field. I have the code like this: - (void)tableView:(UITableView…
Mark Worsnop
  • 4,407
  • 15
  • 54
  • 79
-1
votes
1 answer

Check for exiting TextField resignedFirstReponder?

Is it possible to check if a TextField has been resigned? I have 3 TextFields, and Cycle through them with return key with (resignFirstResponder) and (becomeFirstResponder) But is there a way to check if a field has resigned? I noticed some of my…
-1
votes
3 answers

TableView viewForHeaderInSection Won't Resume First Responder

Weird situation over here, hoping someone can help. Basically, I have a switch like this: private var searchMode = false { didSet { if !searchMode { self.tableView.endEditing(true) } tableView.reloadData() …
AlexK
  • 336
  • 8
  • 21
  • 41
-1
votes
1 answer

How do I make the keyboard appear and the text field begin editing when the view is tapped

I am trying to make it so that when the user touches the UIView the keyboard appears and the user can type in the textField. I am unable to make the view a first responder how can I make this possible? Below is the code: import UIKit class…
-1
votes
1 answer

How can I make a UITextField the first responder, correctly? (Tried 3 methods)

Here's the setup: SNController is an NSObject and it has inside: UIView UITextField UISegmentedControl UILabel UIButton The view is the same as the view inside the ViewController. One can be visible at the time. When the UITextField is visible…
Vulkan
  • 1,004
  • 16
  • 44
1 2 3
11
12