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...
423
votes
37answers
242767 views

Set the maximum character length of a UITextField

How can I set the maximum amount of characters in a UITextField on the iPhone SDK when I load up a UIView?
20
votes
4answers
9138 views

How to input currency format on a text field (from right to left) using Swift?

I have a number let’s say 0.00. When the user taps 1. We should have 0.01 When the user taps 2. We should display 0.12 When the user taps 3. We should display 1.23 When the user taps 4. We shoul...
230
votes
22answers
297717 views

Swift - Converting String to Int

So my application is very basic but I'm new, new to the Xcode platform. The application basically calculates acceleration by inputting Initial and final velocity and time and then use a formula to cal...
388
votes
32answers
203103 views

iOS - Dismiss keyboard when touching outside of UITextField

I'm wondering how to make the keyboard disappear when the user touches outside of a UITextField.
170
votes
12answers
146254 views

Having a UITextField in a UITableViewCell

I'm trying to do that for a couple of days now, and after reading tons of messages of people trying to do that too, I'm still unable to have a fully working UITextField in some of my UITableViewCells,...
117
votes
20answers
83752 views

iPhone Keyboard Covers UITextField

I have an app where, in Interface Builder, I set up a UIView that has a text field near the bottom of the view. When I run the app and try to enter text into that field, the keyboard slides up overto...
339
votes
25answers
164497 views

Text inset for UITextField?

I would like to inset the text of a UITextField. Is this possible?
90
votes
21answers
55679 views

Detect backspace in UITextField

Is there any way to detect when the Backspace/Delete key is pressed in the iPhone keyboard on a UITextField that is empty? I want to know when Backspace is pressed only if the UITextField is empty. ...
481
votes
30answers
285729 views

iPhone UITextField - Change placeholder text color

I'd like to change the color of the placeholder text I set in my UITextField controls, to make it black. I'd prefer to do this without using normal text as the placeholder and having to override all ...

Previous Next