uitextfield

How to disable text-autocorrection for an UITextField or keyboard?

I have a case where autocorrection NEVER makes any sense. It's incredibly annoying. Can I disable it for the UITextField? ...

How to obtain the actual string like it is displayed in the UITextField while the user is typing?

There is the UITextFieldDelegate protocol, which offers only one reasonable method to get notified about changes in the UITextField: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string This method doesn't provide the actual string like it is visible in the textFi...

How to make a UITextView not take the focus when initializing?

I'm using code to create a detailed view pushed when you press a row of an UITableView, but theres a problem. The detailed view contain an UITextView and when a detailedView is called (only first time) this make the UITableView row pressed to lose its pressed state. It shouldn't ! It should lose the pressed state only when returning fro...

UITableViewCell: how to turn of auto scroll to cell

I have a custom tableview cell with 5 uitextfields in it. No matter what textfield I touch my tableview automatically scrolls to the bottom of the cell. How do i turn this off ? i want to do it manually. ...

iPhone next UITextField

I have an application with a UITableView with grouped style. On each of the cells, there is a UILabel with a description, and a UITextField for the user to enter data. We implemented a toolbar on top of the keyboard, with next and prev buttons (similar to what MobileSafari provides when filling forms). In order to give focus to the next...

UITextField inside an UITableViewCell

I currently have two UITextFields inside two corresponding UITableViewCells. This is how it looks: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if...

Flex: Does data binding work with the UITextField?

Hi, Does data binding work with the UITextField? Unfortunately, I'm getting the variable instead of the bound data. [Bindable] public var myString:String; in a function, where tf is a UITextField: myString = "blah blah blah"; blah blah... tf.text="{myString}"; It's giving me {myString} instead of its data. Thank you. -Laxmidi ...

Flex: Binding to the Height of the UITextField

Hi, I'm having problems binding the height of a UITextField to the y of a VBox and the height of the TitleWindow. I'm trying to adjust the height of the TitleWindow and the height of the VBox so, that the UITextField doesn't overlap the other content. Alternatively, I've tried setting the height of the UITextField to an explicit heigh...

Check UITextField for keystrokes when they happen, driving me crazy :-)

I am very new to this and i am sorry to ask this question. I am trying to get this to work for my code but just don't get it. Whatever i seems to do the key that i press show up in the NSLog one key stroke after. I know that the 'shouldChangeCharactersInRange' works this way and i have surfed and tried to test some solutions i have foun...

Selector being performed when trying to set UITextField text

Hi, i'm trying to clear a UITextField whenever the UIControlEventEditingChanged event is being performed. However, when I set the text to nothing, the UIControlEventEditingChanged event is being called again, and this is the way it keeps going. This is my code: - (void)updateText { //other code textfield.text = @""; //othe...

iPad form creation?

I would like to create a form in my iPad application which is very similar to the form used when setting up the Cellular Data Account on the iPad. That is, it collects User Information, Payment information, and other information from the user in a modal view across multiple steps. Is there a good tutorial out there for creating this ty...

Placing a UITextField in the center of the view

Hi I have a UITextField and I wnat to center this field on the center of teh view any ideas usernameField = [[UITextField alloc] initWithFrame:CGRectMake(0, 200, 200, 28)]; instead of CGRectMake(some numbers) - I wnat to place it in the center of teh view Thanks ...

Ignore case UITextField/UITextView

Hi, I would like to ignore all case sensitivity to be ignored for my UITextField and UITextView. I would also like to know how to detect if the string is upperCase or lowerCase. Thanks. ...

how to detect uitextfield lenght

i am trying to get if a uitextfield is empty, and if it is to run the follwing code in an ibaction. float uu = ([u.text floatValue]); float ss = ([s.text floatValue ]); float aa = ([a.text floatValue ]); float x1float = sqrt((uu * uu) +(2*aa*ss)); v.text = [[NSString alloc]initWithFormat:@"%f", x1float]; where v.text is the text i...

[iphone] Is there any way to get a callback when the cursor/blinker position changes in UITextField

I am trying to build a custom keypad whose labels are to be changed on the basis of position of cursor in the UITextField. Is there way to register a callback to the event when position of the cursor changes or something else to get the required. ...

Determine the section of the tabbed UITextField

This is a tricky one: I have: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... //Textfield: UITextField *theTextField = [[UITextField alloc] initWithFrame:CGRectMake(200, 10,self.tableView.frame.size.width - 250, 30)]; theTextField.adjustsFontSizeToFitW...

Creating a UITextField that works like the iOS Mail's "To" field.

In iOS's Mail app, when you enter in the email of someone who is in your contact list it formats the text in an interactive bubble. I can't seem to find any obvious way to do this, and it's exactly what my app needs to do, and I'm not even sure where to start. Any pointers to where to look would be appreciated! ...

How to use UITextView in UITableViewCell with variable height?

I am interested in creating a UITableViewCell with a UITextView inside of it, which adjusts its height (to a certain maximum) as the user types more or less text into the UITextView. I know how to add the UITextView to a custom UITableViewCell--but how might I change the UITableViewCell's height as the user is in the process of typing? I...

Detecting when UITextField text has changed due to shake undo?

I have a UITextFieldDelegate that does a whole bunch of validation on user input to determine whether or not they should be allowed to end editing. In one particular example, it is not valid to leave the field blank. Right now I'm using textField:shouldChangeCharactersInRange:replacementString: to validate the text input after each edi...

Flex 3 UITextField Layout Problem

Hi, I'm using Flex 3, SDK 3.2. I'm having problems determining the height of a UITextField. (Unfortunately, I have to use the UITextField because I'm using FlashEff 2.0. Otherwise, I'd use a different component). I've got a UITextfield that is multiline and has wordWrap. The text is pulled from a database, so the length varies. I've g...