uitextfield

UITextField: Make it higher and position input text vertically centered

The default height of a UITextField with border style UITextBorderStyleRoundedRect is 31px. For an iPad App, I'd like to make a UITextField with a height of 60px and position the text vertically centered so that it looks good (by default the text is drawn only a few pixel below the top border of the UITextField). If i do the following.....

iPhone SDK: Rotation Transformation for UITextField

Hi, I am trying to apply a slight rotation to a UITextfield by assigning a CGAffineTransformation rotation for a few degrees. This works, and the text editing also adheres to the rotated textfield, however the text is offset within the textfield to the bottom. This increases with the angle, and with 45 degrees (M_PI/4) it is almost off ...

Question on App Store Review Guidelines

Hi, In Apple new release "App Store Review Guidelines" http://developer.apple.com/appstore/guidelines.html I am confused with section 3.2 that stated "Apps with placeholder text will be rejected". Does it means app should NOT use the placeholder property of UITextField? Thanks. ...

Hide the cursor of an UITextField [Edited with a solution]

Now we have a UIButton styled as a combo button and custom methods to show a UIPickerView like the keyboard does. In our views with editable controls we detect if we are editing an UITextField or a combo button and then shows the usual keyboard or the picker in our custom way. But since iOS 3.2 UITextField has the inputView property and...

UITextField resignFirstResponder, but Keybord will not disappear

Hi, i`m fighting my way to dismiss a keyboard appearance via done-button. the code is, to make it short: UITextField *name = [[UITextField alloc] initWithFrame:CGRectMake(160, 0, 200, 50)]; name.delegate = self; name.returnKeyType = UIReturnKeyDone; as well as: - (BOOL) textFieldShouldReturn:(UITextField *) textField { ...

Working with UITextField

Hi, I am using UITextField to get login and password from a user and then i use web service to send XML file using SOAP to a site and after successful authentication the user logs in and another screen is displayed. The next screen has a button to redirect to the previous screen where user can again enter login and password. I enter lo...

Does UITextField consume touch events?

Hello, My view controller has UITextField object as a subview. The controller is set as target to handle the text field's UIControlEventTouchUpOutside event. I'm trying to use this event handler for dismissing keyboard when the text field becomes first responder, but it seems to be never called. Delegate methods like textFieldShouldRetu...

UITextField crashes app when entering apostrophe (')

Hi friends, my application is crashing when I enter an ' (apostrophe) in the textfield. Can anyone please tell the solution for the problem. Below is the place where it crashes hotelTextfield.text = [hotelList objectAtIndex:indexPath.row]; I entered other strings in the textfield but those didn't cause any issue. But whenever I enter...

Manually scrolling UITableViewController when a UITextField becomes first responder

Harrr pirates! I'm trying to make a data entry screen using a TableViewController. It contains a grouped table view with two sections, each with a few (2 and 4) rows with a UITextField inside them. When any of the UITextFields become first responder they scroll into view automatically. Great, you would say, but I want to scroll the whol...

iphone: uitextfield, multiple textfields with the same delegate??

Hi, there are two different textfields in my applications and i set the .delegate property of both of them to: self. Now i implemented different methods from the uitextfielddelegate protocol but i want to be able to control the two textfields individually. For instance i want the first text field to do something different when editing be...

Interface Builder Tab Order Typing

Hi I have noticed, in one of my views in an iPad app I am building the next button on the keyboard goes through all the UITextFields from left to right down the screen. Is it possible somehow to make it go top to bottom then right, top to bottom? So say I have to two long columns of text fields, I wan to go top to bottom not left to r...

How to make keyboard appear at top of screen

When the user touches a UITextField a keyboard normally slides up from the bottom of the screen. Is there a way to make the keyboard appear at the top of the screen instead of the bottom? ...

Programatically make keyboard go away

I made a text field but I didn't use Interface Builder, I did it programatically in XCode. So now I need a programmatic way to make it resign first responder so that the keyboard will go away when the user presses enter. ...

How to change the keyboard type for a text field in Xcode

I created a text field in XCode, not Interface Builder. In IB you can select different keyboard types. How can you do the same thing in XCode? ...

How to display this little white x-circle in a UITextField, so users can delete the text?

Some apps have this nice little white circle with an gray x in there UITextField. How can I add this to an UITextField and delete the text when it is tapped? ...

Objective C - Iphone. How can I show the numeric keyboard by default?

Hello, I'm trying the following with no luck. When the user click on a UiTextfield i need to change the keyboard view to the numeric view automatically, is this possible? Thanks in advance. ...

iphone bullet point list

Is there any way to make a bullet point list in iphone? If you copy and paste a bullet point list into a UITextView in IB then it shows up. Is there anyway to do this programatically? Thank you Tom ...

Text disappearing in UITextFields in UITableViewCells when scrolling offscreen

Hi guys, this is quite a nobrainer problem but as im quite new to these things I don't seem to manage it . I have a grouped table view with several sections, with different number of text field cells at each section. Have an SQLite database that saves the field values when the user taps a button. Now the problem because of how reusable c...

Can I separate the delegate logic to one class file only?

I have many textfield, that only support using type "A"/"B"/"C" only, I wrote a textfield delegate to check the user input, including the length and the content that they inputed. But I want to separate the delegate from the class file. How can I do so? Thank you. ...

How to really provide custom text drawing for UITextField?

I've overwritten this method: - (void)drawTextInRect:(CGRect)rect When the text field enters editing mode, it doesn't call this method anymore while the user is typing. I didn't find any other method of UITextField that would get called. Of course, this way it makes zero sense to customize UITextField text drawing. It looks so ugly ...