Top "Uitextfield" questions

A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button.

Set the maximum character length of a UITextField in Swift

I know there are other topics on this but I can't seem to find out how to implement it. I'm …

ios string swift uitextfield character
How to make return key on iPhone make keyboard disappear?

I have two UITextFields (e.g. username and password) but I cannot get rid of the keyboard when pressing the …

ios iphone uitextfield uikeyboard
Adding the "Clear" Button to an iPhone UITextField

How do you add that little "X" button on the right side of a UITextField that clears the text? I …

ios cocoa-touch uitextfield uikit
Swift add icon/image in UITextField

I would like to add icon/image in UITextField. The icon/image should be left to placeholder. I tried this: …

ios image swift login uitextfield
Disabling user input for UITextfield in swift

pretty trivial question, I know. But I can not find anything online. I need to disable the user from being …

ios swift uitextfield editing
Check that a input to UITextField is numeric only

How do I validate the string input to a UITextField? I want to check that the string is numeric, including …

objective-c cocoa-touch validation nsstring uitextfield
How to restrict UITextField to take only numbers in Swift?

I want the user to only enter numeric values in a UITextField. On iPhone we can show the numeric keyboard, …

ios iphone swift ipad uitextfield
UITextfield leftView/rightView padding on iOS7

The leftView and rightView views of an UITextField on iOS7 are really close to the textfield border. How may I …

ios objective-c uitextfield
Allow only Numbers for UITextField input

The iPad does not have a "Numpad" keyboard like the iPhone/iPod does. I'm looking to find how I can …

ios ipad cocoa-touch uitextfield uikeyboard
How to add TextField to UIAlertController in Swift

I am trying to show a UIAlertController with a UITextView. When I add the line: //Add text field alertController.addTextFieldWithConfigurationHandler { (…

ios swift uitextfield uialertcontroller