uitextfielddelegate Questions
8
I've implemented all the app and server changes necessary to support Password Autofill on iOS 11, and it works well. I'd like it to work a little better.
My username and password fields are UITextF...
Eindhoven asked 24/9, 2017 at 15:38
5
Solved
I'm using following custom text field class to change appearance of the text field. Now I need to change text field's background color, text color and place holder color, when user start editing an...
Sola asked 27/4, 2015 at 6:0
10
Solved
I'm using shouldChangeCharactersInRange as a way of using on-the-fly type search.
However I'm having a problem, shouldChangeCharactersInRange gets called before the text field actually updates:
I...
Sharp asked 2/9, 2014 at 10:43
5
Solved
I want to know how to edit the label of text while the app is running.
Example: there will be label called "Tap to Change text." When the user clicks it, it will be editable and the user can inpu...
Subdivide asked 16/7, 2015 at 5:54
13
Solved
I am searching for solutions on how to capture a backspace event, most Stack Overflow answers are in Objective-C but I need on Swift language.
First I have set delegate for the UITextField and set...
Poverty asked 8/4, 2015 at 1:25
17
Solved
I'm designing an iOS app and I want that when the return key is pressed in my iPhone it directs me to the next following text field.
I have found a couple of similar questions, with excellent answe...
Arturo asked 1/8, 2015 at 22:39
7
Solved
I have an UITextField in a MyCustomUIView class and when the UITextField loses focus, I'd like to hide the field and show something else in place.
The delegate for the UITextField is set to MyCust...
Anticlastic asked 15/7, 2009 at 18:48
4
Solved
I have an iOS app, with one UIView and three UITextField (more than 1)
I would to understand what are the best practices for my class ViewController to manage the UITextField.
- class MainViewCont...
Etheridge asked 3/6, 2015 at 20:58
22
Solved
How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for something, but it did not fulfill my need exactly. Since until it returns YES, the text...
Morbidity asked 10/8, 2011 at 12:9
5
Solved
I created a text field in one class BBCustomUtility.h,.m class files and then
+(UITextField*)createTextField: (CGRect)rect image:(NSString*)imageName tag:(int)tag secureText:(BOOL)entry placeh:(N...
Farming asked 3/6, 2016 at 6:2
3
Solved
I have created a custom text field and I'd like to take advantage of Combine. In order to be notified whenever text changes in my text field, I currently use a custom modifier. It works well, but I...
Crat asked 18/10, 2019 at 1:40
4
Solved
So i want to validate the user ip during typing.
In the VC i did the following :
extension NetworkSettingsViewController: UITextFieldDelegate {
func textFieldShouldReturn(_ textField: UITextFiel...
Stitching asked 3/9, 2018 at 13:26
2
Solved
I have added a UITextField to UIAlertController, but shouldChangeCharactersInRange will get not fired. Why? I set the delegate.
let alertController = UIAlertController(title: "", message: "xxx", p...
Playbook asked 20/7, 2014 at 17:7
3
Solved
I am on iOS 6 xcode 4.6.2 using storyboards.
I am using a dynamic UITableView which consists of a number of cells each of which have two UITextFields on them. The two fields are defined in a custom...
Marniemaro asked 17/5, 2013 at 11:49
1
Solved
When I tap in UITextfield to edit it, the message "connection to daemon was invalidated" shows up and the keyboard on my iPhone doesn't show up. I am unable to edit any UITextfield at the...
Dealings asked 18/2, 2020 at 2:47
13
func textFieldDidBeginEditing(textField: UITextField) {
scrlView.setContentOffset(CGPointMake(0, textField.frame.origin.y-70), animated: true)
if(textField == firstDigit){
textField.becomeFi...
Rebba asked 11/2, 2016 at 5:57
10
Solved
I have subclassed UITextField and implemented the UIKeyInput protocol's deleteBackward method to detect backspace being pressed. This works fine on iOS 7 but not on iOS 8.
deleteBackward is not ca...
Zibet asked 18/8, 2014 at 20:8
4
Solved
Here's the error when I wrote the line self.MessageTextField.delegate = self:
/ChatApp/ViewController.swift:27:42: Cannot assign a value of type 'ViewController' to a value of type 'UITextFieldD...
Helenhelena asked 13/4, 2015 at 12:35
6
Solved
I am trying to apply NSAttributedString styles to a UITextField after processing a new text entry, keystroke by keystroke. The problem is that any time I replace the text the cursor will jump the v...
Kumler asked 9/10, 2014 at 17:16
6
Solved
I would like to use resign the first responder on all uitextfield. I'm able to complete this by placing the uitextfields in an array but I wanted to avoid using the array. the resign should happen ...
Rosettarosette asked 14/5, 2016 at 16:26
1
Solved
I was tried to detecting backspace inside of UITextfieldDelegate.
And found this answer.
https://mcmap.net/q/162091/-detect-backspace-event-in-uitextfield
And It working correctly.
But I don't kn...
Intercessory asked 29/7, 2018 at 5:39
3
Solved
I am creating iPhone app which I show below.
At the end of screen I have text field. I have added a delegate for the same. As it is number pad, I have added button seperately so that when button i...
Darlenedarline asked 20/3, 2013 at 10:53
1
Solved
I am using MVVM Structure and when textfield value changed update the view model.
Everything working fine except password field
Here is code
func textField(_ textField: UITextField, shouldChangeC...
Aureaaureate asked 10/5, 2018 at 6:3
8
I have six textfields. Now if all my textfield are filled and tap on any textfield the it should always put focus on sixth textfield & show the keyboard. I have tried below code but it does not...
Shela asked 22/3, 2018 at 12:43
4
Solved
I have a MainView that adds a subview (signUpWindow) when a sign up button is pressed.
In my signUpWindow subview (SignUpWindowView.swift), I set up each field with a function, as an example:
fun...
Plantain asked 28/4, 2015 at 17:15
1 Next >
© 2022 - 2025 — McMap. All rights reserved.