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

Copy, Cut, Select, Select buttons are in black colour

This is Very very strange bug. i don't know why but all the system button copy/cut/select .... change their colour. BTW: in IOS 7 the button is ok. Someone have any idea?
Sosily
  • 706
  • 1
  • 10
  • 26
3
votes
1 answer

Deadlock/hard freezing on UITextField/UITextView/UISearchBar becomeFirstResponder

I'm experiencing intermittent hard freezing of multiple apps on UITextFields, UITextViews and UISearchBars becomingFirstResponder. The freeze happens before the keyboard comes onto the screen. The app does eventually seem to recover, but takes a…
Andrew Ebling
  • 10,175
  • 10
  • 58
  • 75
3
votes
0 answers

UITextField SecureEntryText color changes

I have a subclass of UITextField where I set the text color to be white. I am using this subclass for an email field and a password field. - (void)drawRect:(CGRect)rect { [super drawRect:rect]; self.clearButtonMode =…
Adam Langsner
  • 1,276
  • 1
  • 15
  • 23
3
votes
3 answers

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…
Daniel Hepper
  • 28,981
  • 10
  • 72
  • 75
3
votes
1 answer

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,…
Wayne Lo
  • 3,689
  • 2
  • 28
  • 28
3
votes
1 answer

Changing UITextField in UITableViewCell value does not trigger KVO in iOS 7

I have a UITableView that has cells containing text fields. As the user edits each text field, I need to keep track of the cell's text field value (even when the cell is no longer displayed, so simply tracking the text field does not work). So I…
3
votes
2 answers

Line appears in iOS 7 Textfield

I have used the below code to display a colored placeholder within iOS Textfield. This works fine in iOS 5 and 6. But in iOS 7 a line appears in the middle of the Textfield. - (id)initWithFrame:(CGRect)frame { self = [super…
jay
  • 3,517
  • 5
  • 26
  • 44
3
votes
1 answer

Get subview (UITextField or UILabel) of UITableViewCell -- two ways, one works, one doesn't - why?

I have a UITableViewCell designed via a Storyboard that contains a UITextField and UILabel. I want to update the values of these views when cellForRowAtIndexPath is called. I first tried to get references to the textfield and label like…
ToddB
  • 2,490
  • 3
  • 23
  • 40
3
votes
0 answers

Using next and previous button with UITextField, problems with firstresponder

I am using a subclass of a scrollview that moves the keyboard out of the way. (TPKeyboardAvoidingScrollView) I think this is conflicting with my implementation of the next and previous buttons. I have built an inputaccessoryview I have a category…
hamobi
  • 7,940
  • 4
  • 35
  • 64
3
votes
2 answers

How to hide the return key on IOS keyboard

With my UITextField, my users can do several things for validate. I use the inputAccessoryView for that. Now I want hide the return key on keyboard. Is this possible ? how ?
Anthony
  • 2,801
  • 3
  • 30
  • 49
3
votes
4 answers

How to create UITextField with placeholder to the left and edited text to the right?

How to create UITextField with placeholder to the left and edited text to the right? UITextField itself does not allow using its properties to put placeholder and edited text to different sides. Try to set it in the storyboard -> attributes…
zyxel
  • 1,084
  • 3
  • 15
  • 23
3
votes
1 answer

What is a simple way to get the entire text that is inside a UITextField as it is being typed?

As the user is typing into a UITextField, I need to know in realtime the entire string in the text field. My way of doing this was to listen for a UITextFieldDelegate callback. The problem with this callback is that it is triggered right before the…
Pwner
  • 3,714
  • 6
  • 41
  • 67
3
votes
1 answer

textField validation on real time in objective-C

I have a TextField in xCode and someone ask me to admit just certain types of characters giving me this text string: ^([A-ZÑÑÁÉÍÓÚÀÈÌÒÙÄËÏÖÜ ])*$ or this one: ^([0-9])*$ I Know a method using UITextFieldDelegate named textField…
Jesús Ayala
  • 2,743
  • 3
  • 32
  • 48
3
votes
2 answers

How do I prevent more than 2 numbers after a decimal point in UITextField?

Right Now I am making an app where the user is required to input a currency value, decimal point optional, into a UITextField. My problem comes up when I try to prevent more than 2 numbers after a given decimal point while at the same time…
virindh
  • 3,775
  • 3
  • 24
  • 49
3
votes
3 answers

Right align PlaceHolder text in UITextField

I have a UITextField with the text right-aligned. I wanted to change the color of the placeholder text, so I use - (void)drawPlaceholderInRect:(CGRect)rect method. It works great BUT the placeholder text is left-aligned now (the text remains…
jcr
  • 303
  • 1
  • 6
  • 16