uitextfield

UITextField: move view when keyboard appears

Hello! I'm currently working on an iPhone application with a single view, which has multiple UITextFields for input. When the keyboard shows, it overlays the bottom textfields. So I added the corresponding textFieldDidBeginEditing: method, to move the view up, which works great: - (void)textFieldDidBeginEditing:(UITextField *)textField...

change color of UITextField in iPhone

hello, I have placed UITextField in UITableView and my TableViewCell color is Yellow , normally the background color of TextField in white i want to change the color of TextField to yellow or it should be transparent... i have used [ txtfld setBackgroundColor:[UIColor clearColor]]; but it's not working the textfield are appearing in ...

Data Entry Form Libraries available for Cocoa Touch?

Does anyone know of any libraries for Objective-C Cocoa Touch that provide data entry fields for all different types of inputs (e.g. Date fields, Boolean, Numbers, Integers, etc). Aside from just the built in text fields that accept all inputs? I know you can limit input in the text field delegate and change the keyboard, but stuff like ...

iPhone textfields/keyboard - how to disable second textfield until first one has been completed

Hi, I have a login screen with two textfields (username and password). When the user clicks on either textfield, the keyboard appears and everything is fine. However, if the user clicks on the other textfield before clicking Done (on the keyboard) for the first textfield, the text for the username isn't saved. The only way to save the o...

iPhone UITextView scrollable but not editable

How can I get a textview to be able to scroll without the keyboard poping up for edit when clicked on? I am pretty new to iPhone programming and I've tried several different combinations in Interface Builder, but can't seem to get any to work. Also I am having trouble when I have two textviews on the screen where only one of them will sc...

Increase UITextField to Certain Length

Hi Everyone: I have a UITextField that I would like to "automatically" adjust its bounds size in order to make space for the string added in the field. However, I would like it to max-out in terms of width at a certain amount. What is the best way that I can go about doing this? Thanks for any help. EDIT: TestingView.h #import <UI...

how to get a UITextView to Clear like a UITextField does

im trying to get a UITextView to Clear like a UITextField does cant seem to get this I making a app that need to clear after tapping send much like a email or tweet with several lines of text. any code would be great thanks so very much ...

iPhone - Chinese and Japanese in UITextField

I wanna make sure some code I've written works good with Chinese and Japanese characters. I tried changing the iPhone Simulator language to Chinese and Japanese, but it doesn't look like the character set for the UITextFields change. How do you do that? ...

UITextField border color

Hello! Could anybody tell me the truth :) I have really great wish to set my own color to UITextField border. But I could find possibility to change the border line style only. Please, i'll wait any answer ...

Can I limit the character set for a UITextField?

I have a bitmap font which which doesn't have every single character, such as accented characters (é î ü etc) or symbols such as "¥" or © which I'm using to display usernames in a Highscore table for a game. Is it possible to limit the UIKit keyboard to certain characters, or only allow certain characters in the UITextField? Or will I ...

UITextField custom background view and shifting text

I'm trying to use a custom textfield background. The problem is that the text then appears to be too close on the left. I don't see any way to shift the text without subclassing UITextField. So I'm attempting to extend and overwrite - (void)drawTextInRect:(CGRect)rect{ NSLog(@"draw rect"); CGRect newRect = CGRectMake(rect.or...

how to move the cursor to next UITextField programatically?

hi, i am developing an application where i am creating some UITextField programatically, and i allow maximum 1 character in the text field . which is working perfectly. But after writing the charcter user have to again click in the next textfield to appear the keyboard So, now i want when after writing 1 character the cursor should a...

How to determine the cursor position of a UITextField?

I have a text field that is always of the format "XX0000000XX", X being a letter, 0 being a number. I switch keyboards as the user is typing depending on whether they need to enter a number or letter. This works fine, until the user positions the cursor in the middle of the text field to make an edit. How do I determine the cursor pos...

iphone copy/paste menu not shown in UITableViewCell

I placed a UITextField and a UITextView in a tableviewcell. When tap on text in them, it allows me to enclose a portion of the text with a rectangular popup showing the enclosed text enlarged. I want to either copy or paste over the selected text, but the copy-paste menu never show up whether I single tap, double taps or press and hold. ...

How to change the writing direction in iPhone UITextView or UITextField

Right now if you type something in a right to left language and tap and hold, the copy and paste menu will have an extra option for changing the writing direction form "left to right" to "right to left". I want to set this option in the code so that my UITextView writing direction would be right to left by default. Does anyone know h...

becomeFirstResponder on UITextView not working

For some reason, I'm having trouble with making a textfield the first responder. I have a UITableView with two rows. Each row has a label and a UITextField. The textfields are tagged kLoginRowIndex = 0 and kPasswordRowIndex = 1. As you might have guessed, I use this for setting login and password. If the user taps on the return button ...

UITextField Validation visual feedback

i have a uiTextField that i am validating input on, when i have invalid input what are some appropriate ways to show that the input is invalid? is there any built in mechanism for showing invalid input states? ...

Add a UITextField to a UITableView on a button click

Hi All, After quite a long time perusing the web i have decided to come here as i usually have my questions answered super speedy and super well on Stack Overflow! I am attempting to complete the following and would be grateful of any suggestions or pointers in the right direction: Display a UITableView When a "+" button is pressed a...

How can I get a textDidChange (like for a UISearchBar) method for a UITextField?

How can I get a textDidChange method for a UITextField? I need to call a method every time a change is made to a text field. Is this possible? Thanks! ...

Enable copy and paste on UITextField without making it editable

I want the text in a UITextField (or ideally, a UILabel) to be non-editable, but at the same time give the user the ability to copy and paste it. ...