Questions tagged [uitextfield]

A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button. You typically use this class to gather small amounts of text from the user and perform some immediate action, such as a search operation, based on that text.

A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button. You typically use this class to gather small amounts of text from the user and perform some immediate action, such as a search operation, based on that text.

In addition to its basic text-editing behavior, the UITextField class supports the use of overlay views to display additional information (and provide additional command targets) inside the text field boundaries. You can use custom overlay views to display features such as a bookmarks button or search icon. The UITextField class also provides a built-in button for clearing the current text. A text field object supports the use of a delegate object to handle editing-related notifications.

Resources:

8508 questions
3
votes
2 answers

UIPickerView as inputView not hiding on iPad

I have added UIPickerView as inputView to UITextField in my app. It works perfectly on iPhone, but when I run the same code on iPad, my pickerView does not hide on clicking done button. Some code: picker = [[UIPickerView alloc]…
Crazy Yoghurt
  • 2,365
  • 2
  • 26
  • 37
3
votes
2 answers

Disable Keyboard for UITextfield

I'm wondering how to disable the inputview of a UITextfield. Setting textField.inputView = nil; or [textField setInputView:nil] in ShouldBeginEditing doesn't do anything, and using the userInteraction property removes the ability to interact with…
DOLOisSOLO
  • 141
  • 1
  • 1
  • 12
3
votes
1 answer

How to save UIAlertView text field value to .plist file?

i have alert window with text field and 2 buttons, i need to save text added in my text field to .plist file, how can i do these? .h file NSMutableDictionary *cameras; my alert code -(void)alertView:(UIAlertView *)alertView…
Roman Simenok
  • 530
  • 7
  • 22
3
votes
2 answers

Increase UITextField to Certain Length

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…
individualtermite
  • 3,615
  • 16
  • 49
  • 78
3
votes
2 answers

How to set the inputDelegate for a UITextField?

I have a UIAlertView containing a UITextField: UITextField *textField = [alertView textFieldAtIndex:0]; Now I want to set the inputDelegate property for the textField: [textField setInputDelegate:self]; My view controller (self) conforms to…
Mischa
  • 15,816
  • 8
  • 59
  • 117
3
votes
4 answers

UIPickerView as inputView, but disallow direct editing

So I have UIPickerView as inputView for one of my text fields. It works perfectly: it slides up, as normal keyboard would, I can select an option and it will be populated in a text field. The only problem is that I can directly edit the field, by…
3
votes
1 answer

UITextfield content validation (letters, numbers and special punctuation marks)

I have a UITextfield that holds an username field, then I would like to add a validation so user cannot type a username that is different from letters, numbers and "_-." punctuation marks. I'm trying to use NSCharacterset to do that but without…
vilelam
  • 804
  • 1
  • 11
  • 19
3
votes
2 answers

How to step through multiple UITextFields

I have four UITextFields that I would like to use in a UIAlertView, Currently this is what it is looking like What I would like to be able to do is restrict each box to 4 characters once each field once that 4 character limit is reached then I…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
3
votes
2 answers

tableView convertPoint: fromView: odd behaviour and workaround

I have a tableView with custom cells. One of the objects in the cell is a textField. The tableViewController is the textFieldDelegate. The datasource for the table is an array of objects. When the user tap on the textField, the tableViewController…
3
votes
1 answer

Activate the Speech to Text on UITableView

When the keyboard appears for UITextViews and UITextFields there is a microphone button that lets you do Speech to Text. Is there anyway for me to activate this functionality without having the user to click on the button?
Alan
  • 9,331
  • 14
  • 52
  • 97
3
votes
1 answer

How to make marquee UILabel / UITextField / NSTextField

I need to make marquee UILabel in Xcode. The marquee will scroll from right to left. I tried CCScrollingLabel also JHTickerView and others. But i can not find simple code with marquee with out any views/arrays/some stupid libraries and others How…
3
votes
2 answers

UITextField on UITableViewCell stops responding to touches - possibly caused by scrolling offscreen

I have UITextFields on dynamically created custom UITableViewCells. I'm using them to type data ( or pull it in from core data if its an edit) and write the data back out on editingDidEnd. My problem is I can select the UITextFields to my heart…
SimonTheDiver
  • 1,158
  • 1
  • 11
  • 24
3
votes
0 answers

How to load array from web service for searching in uitextfield?

I wish to send an array of say stationNames in a SOAP call . Please help. This code for manual input to array - (void)autoCompleteTextField:(MLPAutoCompleteTextField *)textField possibleCompletionsForString:(NSString *)string …
Mhmt
  • 759
  • 3
  • 22
  • 45
3
votes
5 answers

Position text in a textfield

I would like to position the text in a textfield more specifically. My current code: UITextField * textFieldIndustry = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, 465, 68)]; textFieldIndustry.font = [UIFont systemFontOfSize:17.0]; …
Torylon
  • 81
  • 1
  • 10
3
votes
1 answer

Cannot delete text in UITextField

I have implemented a max character limit on a UITextField. The problem is that when input max number for characters, I am unable to backspace the characters. Can anyone tell me what I am doing wrong? Below is my code: -(BOOL)textField:(UITextField…
Hassan Zaheer
  • 1,361
  • 2
  • 20
  • 34