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
4 answers

How can I get the value of a UITableViewCell that is not visible?

I have a table view cell that has many rows with a UITextView. In those UITextView the user can enter values. The problem that I have is that if I want to get the value of a row when the row is hidden I get nil. NSString *cellValue = ((UITextField…
iVela
  • 1,160
  • 1
  • 19
  • 40
3
votes
6 answers

How to check if UITextField text is empty when done editing

I currently have a UITextField with default text and set to clear when editing begins. I'm trying to make it so that if the field is empty or nil when editing is done the text value will be the default text again. I'm having trouble detecting when…
starscream_disco_party
  • 2,816
  • 5
  • 26
  • 42
3
votes
2 answers

Having a UITextField alter a Webview URL

I have a viewcontroller with with a xib file. The file needs to have a TextField and a Button that leads to another viewcontroller with a web view. I want to have the URL be altered by whatever the user enters into the text field. So for…
user1350228
  • 59
  • 1
  • 7
3
votes
2 answers

How to make an iOS calculator, by just using a UITextField

I am looking to create an iOS calculator, just by using a UITextField. So for example; somebody may type in '6 - 3 x 2' in the UITextField then hit "Done" or "Go" etc. This would then calculate the answer and display it in a UIAlertView. So firstly…
objc-obsessive
  • 825
  • 1
  • 12
  • 18
3
votes
1 answer

how to add textfield in tableview cell(each row) and set tag to each textfield to access it's text

How can i add textfield in tableview cell (on each row). This textfield will be in middle of each row. And also set Tag on each textfield of cell to access their text.
iosDev
  • 604
  • 3
  • 12
  • 28
2
votes
3 answers

How can I change the placeholder color of a UITextField?

I have tried the two options everybody answers in this forum but nothing works for me... I have tried to override: - (void)drawPlaceholderInRect:(CGRect)rect and also: [self.myTextField setValue:[UIColor redColor]…
sergiocg90
  • 489
  • 2
  • 11
  • 24
2
votes
2 answers

iPhone UITextField and UIButton in one grey frame

I would like to create something like this: I would like to place an UITextField with an UIButton into one grey frame, and I would like the button's border to be contained by this grey frame. Please somebody show me some sample code for this! Thx!
viplezer
  • 5,519
  • 1
  • 18
  • 25
2
votes
4 answers

How can I make the keyboard of other text field disappear while accessing other text field

I have two text fields in my view. I did it using IB. in second text field i am using the action sheet After entering the text in textField1 I am in text Field-2.In second text field i am using the action sheet with a picker to select the date. so i…
vamsi575kg
  • 594
  • 1
  • 7
  • 23
2
votes
2 answers

UITextField becomeFirstResponder works only once

In my app, there is the ability for the user to input their name. A UITextField is added to the view and becomeFirstResponder is called. In the textFieldShouldReturn method, resignFirstResponder is called. Then in textFieldShouldEndEditing, the…
2
votes
2 answers

UITableView onTouch hide keypad

I have a UITableView wherein I have placed a UIButton (as a subview of cell). Also below the table, I have a UITextField. On touching the textField, the keypad appears as usual. What I want is to dismiss the keypad on touching the table. One option…
Nitish
  • 13,845
  • 28
  • 135
  • 263
2
votes
1 answer

Liftweb - LiftScreen and ajax

I am trying to use Liftscreen to implement a form in ajax but I want to use Ajax, that is to say that I want the finish function to be called whenever a field is updated. Usually I use functions like SHtml.ajaxText to achieve this goal but I would…
Christopher Chiche
  • 15,075
  • 9
  • 59
  • 98
2
votes
1 answer

Xcode: Storyboard Tabbed Application Passing Data Back and Forth

I am currently using the following code to try to pass the text in a UITextField between 3 view controllers that are looking at the same ViewController.h and ViewController.m files: - (void)prepareForSegue:(UIStoryboardSegue *)segue…
2
votes
1 answer

How to make the keyboard appear directly in text field of a UITableViewCell

Basically I want the same behavior that occurs when, on your iPhone, you go to Settings -> General -> About -> Name. Notice that when you click on "Name", a new view appears prompting you to enter the name; and the text field is directly "selected"…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
2
votes
1 answer

How do I get the coordinates (i.e. frame rect) of the caret in a UITextField?

I have a UITextField where I am implementing autocomplete in a UIPopoverController. I would like the popover's arrow to point directly at the caret (the way Mail and Messages does in the To: field). How do I get a CGRect that represents the…
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
2
votes
2 answers

UITextField ResignFirstRespond not working in iphone?

I am designed one form with four UITextFields. First One for entering numbers, Second for entering name, third for choosing date and last one for choosing time. First textfield using Numberpad it will hide by using done button on the keyboard. If…
Gopinath
  • 5,392
  • 21
  • 64
  • 97
1 2 3
99
100