uitextfield Questions
31
Solved
I want to format a UITextField for entering a credit card number into such that it only allows digits to be entered and automatically inserts spaces so that the number is formatted like so:
XXXX X...
Mercurial asked 23/8, 2012 at 1:35
17
Solved
I've got a TextField with a numberPad and the function runs only if it contains numbers.
The user will crash the app if they paste letters in the TextField and click OK.
How can I disable pasting...
Merritt asked 12/4, 2015 at 23:55
7
Solved
I am building an application with a custom interface for entering text, and was using a UILabel for display. It then became necessary for the user to be able to copy and paste the text, so I went w...
Joshi asked 9/1, 2012 at 0:13
20
Solved
I have a question about iOS UIKeyboard.
I have a UITextField and I would to have the keyboard with only uppercase characters.
I use a storyboard and I tried to set the Cpitalization as "All chara...
Storey asked 13/1, 2014 at 13:10
9
Solved
With the release of iOS 8 I would like to disable the predictive text section of the keyboard when I begin typing in a UITextField. Not sure how this is done, any help would be appreciated!
Distressful asked 10/9, 2014 at 14:5
5
Solved
I am trying to create an OTP page for my app but I don't know how to make the next textfield focus after I input a single digit in the first text field.
I created 6 text field for each digit of OTP...
Allow asked 2/9, 2021 at 7:35
30
Solved
I am having a weird issue in which my UITextField which holds a secure entry is always getting cleared when I try to edit it. I added 3 characters to the field, goes to another field and comes back...
Benedicite asked 5/9, 2011 at 8:26
9
Solved
I'm making a UI, which has a verification for the phone number. It has four codes to be input which you will get via notification from our backend. Since I'm responsible to make the UI for this, it...
Twowheeler asked 1/4, 2019 at 11:13
8
Solved
It takes roughly 3-4 seconds for the keyboard to pop up after I touch my UITextField. This only occurs on the first time the keyboard pops up since the app launched, afterwards the animation starts...
Faux asked 20/2, 2012 at 6:26
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
4
Solved
I have increased the height of UITextField. The problem is that although height is increased, the text still starts from center of textFeild. But I want text to appear from top of UITextField.
Brewhouse asked 14/2, 2012 at 16:25
21
Solved
In my test I have a text field with a pre-existing text. I want to delete the content and type a new string.
let textField = app.textFields
textField.tap()
// delete "Old value"
textField.typeText...
Freiburg asked 28/9, 2015 at 11:28
3
Is there a way to reposition UITextField inside UISearchBar?
I'd like to move UITextField inside UISearchBar up a little bit.
Lindstrom asked 22/7, 2011 at 15:42
29
Solved
I currently have a UITextfield with an eye icon in it that when pressed is supposed to toggle the secure text entry on and off.
I know you can check mark the "secure text entry" box in the attr...
Inconstant asked 17/6, 2016 at 4:25
12
Solved
I am trying to figure out how to make the text Field shake on button press when the user leaves the text field blank.
I currently have the following code working:
if self.subTotalAmountData.text ...
Rolf asked 16/1, 2015 at 15:15
9
Solved
I followed this thread: datepicker by clicking on textfield
I imported both of the following protocols:
@interface ViewController : UIViewController<UIActionSheetDelegate, UITextFieldDelegate&...
Rimola asked 25/6, 2012 at 21:48
2
To preface, this problem has been solved using a couple of different methods - I'll leave the stack overflow post that has the solution here text
The problem deals with detecting when the "del...
Seringa asked 14/7, 2023 at 5:27
6
Solved
For an IBOutlet UITextField, does it matter as far as memory management or other reasons how you clear the text value?
textFieldX.text = nil
or
textFieldX.text = @"";
In objective-c it is acc...
Mangonel asked 22/7, 2009 at 22:35
38
Solved
I'm using Swift for programing with iOS and I'm using this code to move the UITextField, but it does not work. I call the function keyboardWillShow correctly, but the textfield doesn't move. I'm us...
Entomophilous asked 5/9, 2014 at 19:57
22
Solved
I know that I need to tell my UITextField to resign first responder when I want to dismis the keyboard, but I'm not sure how to know when the user has pressed the "Done" key on the keyboard. Is the...
Roughcast asked 8/11, 2008 at 3:47
16
Solved
The iPad does not have a "Numpad" keyboard like the iPhone/iPod does.
I'm looking to find how I can restrict the user's keyboard to only accept values 0 through 9.
I would imagine using UITextFie...
Brunson asked 17/10, 2012 at 23:9
16
Solved
In my iPad app, I noticed different behavior between iOS 6 and iOS 7 with UITextFields.
I create the UITextField as follows:
UIButton *theButton = (UIButton*)sender;
UITextField *textField = [[UI...
Krafftebing asked 24/10, 2013 at 15:7
2
Looking at the behavior of the Apple Messages app, it seems they are using a UITextField for the text input.
The behavior of the placeholder with the cursor appearing at the beginning of the place...
Earp asked 24/10, 2017 at 7:9
6
Solved
How would you dismiss the keyboard from the UITextField when tapping outside of the keyboard? I have tried resignFirstResponder() and it only exits after typing one number. I have also tried textFi...
Ketose asked 10/1, 2015 at 16:59
2
Solved
I'm trying to style the helper text that comes with the TextField Component given by Material UI ( found here). I'm using FormHelperTextProps (found here). However, it seems that, for some reason, ...
Bird asked 30/1, 2021 at 7:39
1 Next >
© 2022 - 2025 — McMap. All rights reserved.