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

textField appears twice in UITableView

I have ageTextField property in my TableViewController. I add it to the first section cell's subciew but I don't know why it is shown in another section (#3) when I scroll down.. - (UITableViewCell *)tableView:(UITableView *)tableView…
mhmhsh
  • 161
  • 1
  • 13
3
votes
1 answer

measure the amout of adjustsFontSizeToFitWidth for a UILabel or textField

UILabels and textFields can auto scale their fonts to fit the space of the view (as text accumulates for instance). Is there a way to measure the amount of the scale performed? As it seems, when auto scaling, the value of myLabel.font.pointsize or…
OWolf
  • 5,012
  • 15
  • 58
  • 93
3
votes
1 answer

Change label from a different view

This is mainly a delegation question because I'm still learning and don't get it. I don't know how to go about creating the delegate I need. I know similar questions have been asked but the solutions don't help me out. How can I switch the text of a…
sbjluke
  • 309
  • 5
  • 15
3
votes
9 answers

How to check if a UITextfield has Text in it?

I just followed a tut on making a conversion app. It was good, but I wanted to expand on it. The tut has you input a value in for Fahrenheit and then converts to Celsius. Pretty basic. So I wanted to add a Kelvin conversion as well. But the…
Douglas
  • 2,524
  • 3
  • 29
  • 44
3
votes
2 answers

UITextField text change callback

I have a UITextField named textFieldInput and some button. Somehow I disable the input view so that if anyone tap in the texField no keyboard will show. I am adding text when a button is pressed programmatically. And I want to catch this changes. I…
razibdeb
  • 1,211
  • 1
  • 10
  • 12
3
votes
5 answers

How to keep 2 different fonts within the same UITextField or UITextView?

I want to set 2 different fonts within the same UITextField and UITextView . How to do it?
Carina
  • 2,260
  • 2
  • 20
  • 45
3
votes
1 answer

iOS - How to set textfield hint to italic (with regular actual text)?

Is there any easy way to set a text field's hint to italic, while keeping the actual text non-italicized? The image below shows what I'm trying to accomplish, but doesn't actually work, as text typed into the first text field is still…
Kyle Clegg
  • 38,547
  • 26
  • 130
  • 141
3
votes
1 answer

Exec bad Access NSString

individualPercUpdated is called on UIControlEventEditingDidEnd and checkInitialValue is callled on UIControlEventEditingDidBegin. My prog crash on line if(!([initialValue isEqualToString:textField.text])) by giving warning Exec Bad Access -…
Idrees Ashraf
  • 1,363
  • 21
  • 38
3
votes
5 answers

How to get value from UITextfield and sent it to email?

I've created an app which contains form and that have to filled up in appropiate text fields..now i need to get all data in textfield and it to be sent in email.here is my code for composing email - (IBAction)compose:(id)sender { if (text1.text=@""…
Vishnu
  • 2,243
  • 2
  • 21
  • 44
3
votes
3 answers

UITextField remove "..."

I have a problem with UITextField and my best friend google don't want help me... I would to remove the "..." automatically added at the end of the field if is content is too long. Is it possible?
user1435015
  • 33
  • 1
  • 4
3
votes
2 answers

Display Emoji in UITextField

I am trying to add emoji in UITextField with existing text.But I get only unicode in the textfield in place of emoji like \ue415. I have try the below code to set emoji in the textfield. I have a view in which there are buttons with images of…
Mansi Panchal
  • 2,357
  • 18
  • 27
3
votes
3 answers

How to handle references to UITextFields in dynamic UITableView (iPhone)

I have a UITableView that is broken up into a user defined number of sections. Within each of these sections there are always 2 rows. Each of these two rows contains a UITextField which the user is able to edit. What I need is a way of being able to…
user843337
3
votes
2 answers

UITextField -- Adding UIView for leftView - Can't get Focus

The UITextFields in my app have placeholder text defined (in Interface Builder), and I cannot cause these fields to acquire focus (i.e. show the keyboard and allow editing) when I tap on the area occupied by the placeholder text. If I tap on the…
RyanM
  • 5,680
  • 9
  • 45
  • 55
3
votes
3 answers

Can't hide the keyboard with shouldChangeCharactersInRange

This is my code: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSCharacterSet *nonNumberSet = [[NSCharacterSet…
ytpm
  • 4,962
  • 6
  • 56
  • 113
3
votes
3 answers

UITextField cuts off descenders on Unicode characters

Is there any way to get a UITextField to display an NSString containing unicode subscript characters (e.g. ₂ , ₃ ) correctly without cutting them off? I'm starting with a UITextField created in IB. I've tried: setting the frame.size.height on the…
Jeff
  • 123
  • 5
1 2 3
99
100