All Questions

1488
votes
85answers
571570 views

How to make a UITextField move up when keyboard is present?

With the iPhone SDK: I have a UIView with UITextFields that brings up a keyboard. I need it to be able to: Allow scrolling of the contents of the UIScrollView to see the other text fields once the...
140
votes
26answers
91479 views

Move view with keyboard using Swift

I have an app that has a text field on the lower half of the view. This means that when I go to type in the text field the keyboard covers the textfield. How would I go about moving the view upwards ...
94
votes
26answers
73553 views

Dismiss keyboard by touching background of UITableView

I have a UITableView with UITextFields as cells. I would like to dismiss the keyboard when the background of the UITableView is touched. I'm trying to do this by creating a UIButton the size of the ...
243
votes
30answers
203284 views

Close iOS Keyboard by touching anywhere using Swift

I have been looking all over for this but I can't seem to find it. I know how to dismiss the keyboard using Objective-C but I have no idea how to do that using Swift? Does anyone know?
64
votes
13answers
67312 views

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 restrict the user's keyboard to only accept values 0 through 9. I would imagine using UITextField'...
71
votes
10answers
46554 views

Getting keyboard size from userInfo in Swift

I have been trying to add some code to move my view up when the keyboard appears, however, I am having issues trying to translate the Objective-C examples into Swift. I have made some progress, but I ...
51
votes
3answers
35024 views

Change text of "Return" keyboard button

How can I change the standard text of the "Return" button to something else? I want it to be "Add".
3
votes
5answers
5820 views

Keyboard not Appearing when Tapping Text Box in UIWebView

I have a UITabViewController set up with two tabs, the second containing a web browser. The keyboard will not appear in my App unless I first display and dismiss a UIAlertView in the first tab. What c...
156
votes
10answers
133574 views

Programmatically change UITextField Keyboard type

Is it possible to programmatically change the keyboard type of a uitextfield so that something like this would be possible: if(user is prompted for numeric input only) [textField setKeyboardType:...
16
votes
9answers
13494 views

UITextView cursor below frame when changing frame

I have a UIViewCOntrollerthat contains a UITextView. When the keyboard appears I resize it like this: #pragma mark - Responding to keyboard events - (void)keyboardDidShow:(NSNotification *)notificat...

Previous Next