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...
I want to leave a bit of space at the beginning of a UITextField, just like here: Add lefthand margin to UITextField But I don’t know how to do...
How do you add that little “X” button on the right side of a UITextField that clears the text? I can’t find an attribute for adding this sub-control in...
Note: See accepted answer (not top voted one) for solution as of iOS 4.3. This question is about a behavior discovered in the iPad keyboard, where it refuses to...
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...
I’m wondering about changing the color of the cursor / caret in a UITextField (And UITextView if its the same answer) in iOS. I’ve seen answers for OSX development,...
I am using UITextfied while clicking on textfied keyboard appear but when i pressed the return key, keyboard is not disappearing. I used the following code: func textFieldShouldReturn(textField: UITextField!)...
I am developing an application where user has to write some information. For this purpose I need a UITextField which is multi-line (in general UITextField is a single line)....
I am trying to check when a text field changes, equivalent too the function used for textView – textViewDidChange so far I have done this: func textFieldDidBeginEditing(textField: UITextField) {...
The application basically calculates acceleration by inputting Initial and final velocity and time and then use a formula to calculate acceleration. However, since the values in the text boxes...