Questions tagged [becomefirstresponder]
176 questions
2
votes
1 answer
Making NSBordlessWindow key and active when main application window is not active
I have a custom NSBorderlessWindowMask window in my application that I show when user taps a certain hot key.
This window has a `NSTextField, that has to become first responder when the window shows up.
This window is not a main window, but it can…

Nava Carmon
- 4,523
- 3
- 40
- 74
2
votes
1 answer
iOS UITextField won't become first responder after view reload
When my view (view A) loads, a UITextField becomes the first responder. I can then push a new view controller (view B), but when I pop that view controller back to view A, the UITextfield doesn't become the first responder anymore. I have to touch…

George Ciobanu
- 655
- 2
- 6
- 24
2
votes
3 answers
Multiple UITextFields in a custom UITableViewCell
I have a UITableView that has 2 different customcell definitions. One is a single UITextField and the other has 4 UITextFields
userInteractionEnabled is manually set to enable cell level touch navigation, and I handle the UI interaction within…

Izzy Manpo
- 449
- 1
- 3
- 16
1
vote
1 answer
The keyboard make the UIView slowly when it comes up?
i have an action that allows me to present a ModalViewController and show the UITextField as a first responder, the problem is when this ModalViewController will come up it takes a little time, the cause is the keyboard, and when i grab the code to…

keep on you
- 310
- 6
- 21
1
vote
6 answers
iOS - UITextView becomeFirstResponder
This is the problem : when MessageComposeViewController has been dismissed, my textView doesn't become the first responder and the keyboard doesn't appear. Why? I put the [textView becomeFirstResponder] code in viewWillAppear. How can i do??

Andrea Mario Lufino
- 7,921
- 12
- 47
- 78
1
vote
1 answer
SwiftUI Clear Textfield FirstResponder
I'm looking to clear my FirstResponder TextField with an independent button that will save the field data and clear the input content so that we can write again. My code is based on the work of :
Matteo Pacini ->…

MaxLand
- 11
- 2
1
vote
2 answers
After becomeFirstResponder textField doesn't send events to delegate
can anybody help me in such situation:
I have SigninController class with two textFields (as Outlets) txtLogin and txtPassword:
when I filled txtLogin, I call [txtPassword becomeFirstResponder] to pass input focus to next field (return button works…

LIAL
- 1,624
- 4
- 24
- 30
1
vote
1 answer
becomeFirstResponder does not work in viewWillAppear
I'm using a UISearchController in my navigationItem.titleView.
The goal here is I can type in my search term & when I tap search I will be pushed to a new UIViewController. When I return to the previous UIViewController I want the UITextField…

Luke Irvin
- 1,179
- 1
- 20
- 39
1
vote
1 answer
Accessibility focus order not working as expected [iOS]
OVERVIEW
I'm having trouble getting correct focus order (Accessibility in iOS). It seems like becomeFirstResponder() overwrites my focus order I have specified in the array and causes Voice Over Accessibility functionality to read wrong…

marika.daboja
- 881
- 13
- 27
1
vote
1 answer
Make Text Field in Table View Cell become first responder
I'm fairly new in Swift, i'm working on a dynamic table view and use reusable cell to create the view like on the screenshots
my code works just fine to remove the border line of the text field, but it doesn't work when I want it to make as a first…

Aldo Sugiarto
- 197
- 3
- 20
1
vote
1 answer
How do I get with SWIFTUI the textField as firstResponder like with Swift: textField.becomesFirstResponder
I have a textField in a SwiftUI file and want this fiel duo become the first responder and the keyboard should show up. In Swift I would simply do: textField.becomesFirstResponder().
Does anyone Has an idea how to do that in SwiftUI?

Red
- 1,425
- 1
- 10
- 15
1
vote
3 answers
To move to next text fieds in table cell
In my application , there is a table view with 2 text fields per cell. Am assigning tags for each text field. On pressing done button i want to make the next text field the first responder(can be between table cells). But the code now i am using…

xydev
- 3,409
- 5
- 34
- 54
1
vote
1 answer
Creating an input text bar above the keyboard displayed when the user clicks a button
I'm trying to make a facebook style input bar for when a user wants to make a comment. To do that I created a custom UIView in an .xib which holds my buttons and input UITextView (generally I much prefer using storyboard to programatically creating…

Guy Greenstein
- 11
- 1
1
vote
0 answers
textfield.becomeFirstResponder isn't keeping text field focused in swift
I have a page where there is a UITextField that I add programmatically, I set the text type to number and add constraints and all that. Then I add a done button to the accessoryView of the text field and add a function to run when that done button…

Neglected Sanity
- 1,770
- 6
- 23
- 46
1
vote
2 answers
UITextfield become first responder not working
I have a toolbar on top of the keyboard with a prev and next button. When I press the next button the next textfield should become first responder but this doesn't happen. Here is my code.
-(IBAction) nextfield {
if([name isFirstResponder] ==…

user739509
- 813
- 3
- 10
- 19