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

Set color of UITextfield based on numeric value using an If-statement in Objective-C

I currently use a UIStepper in a custom UITableViewCell hooked up to a UITextField to have people select how many items they want to add to their Shopping Cart. To check if the object is in stock, I've got two numbers: The LocalStock and the…
blaa
  • 438
  • 5
  • 19
3
votes
3 answers

How to add text area in iOS app

I am newbie for iPhone application. I want to add TextArea. I know how to add textField, however can someone help me how can I have Textare in my iPhone application? I thought, I can increase the height of textfield and make it multi-line, however…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
3
votes
3 answers

How to disable text tips in UITextField?

Is there a way to disable useless and annoying pop up text tips in UITextField and UISearchBar like this on the screen?. How can I do this? I couldn't find any property responsible for this.
MainstreamDeveloper00
  • 8,436
  • 15
  • 56
  • 102
3
votes
1 answer

Sliding in uitextfield

I am having text which is more than the width of the UITextField. The text is getting truncated and dots are added at the end of the text. How can I achieve the functionality of EditText (in Android) where we can slide through the textfield if the…
Chandu
  • 695
  • 2
  • 12
  • 25
3
votes
3 answers

iOS: Why does UITextField with setCornerRadius cut off text

I'm trying to load a UITextField with rounded corners into a table view for iOS. For the most part, everything is working fine. However, the left-most character gets partially cut off due to the corner radius property. Is there a way to set a…
Chris
  • 1,180
  • 1
  • 9
  • 17
3
votes
2 answers

Not displaying the arabic keyboard

I am implementing a multilinqual application, there i have search funtionlity. In that i have placed uitextfiled. When i change the language to arabic , and was testing the app. i found that particular uitextfield is always showing the english…
user198725878
  • 6,266
  • 18
  • 77
  • 135
3
votes
7 answers

Enabling button if I write in TextField

I am having some problems with enabling a button when you write something in a TextField. I got it to disable if a there's nothing in the TextField but I can't make it to enable again when you write something in it. I have something like this: -…
3
votes
1 answer

Cursor is blinking in UITextField but keyboard doesn't appear

I got a simple detail view with a textfield. In detail's viewController I wrote this code: - (void) viewDidAppear:(BOOL)animated{ [self.textField becomeFirstResponder]; NSLog(@"is textField 1st responder %d", [self.textField…
kas-kad
  • 3,736
  • 1
  • 26
  • 45
3
votes
5 answers

How to get the TextField position in a TableCell on iPhone?

Here is the UI...(I know it is ugly...) The orange is a view, and the blue is the table, and the gray one is the table cell, lastly, the red is a textfield in a table cell. My question is simple, I just wanna to know the red text field position...…
DNB5brims
  • 29,344
  • 50
  • 131
  • 195
3
votes
2 answers

iOS UITextField changes position when text is changed

I use this to center a text field over something relevant: [textField setCenter:[someObject center]]; [textField becomeFirstResponder]; This looks great, nice and centered over the object, ready to accept text. I'd like the text formated a certain…
Yimin Rong
  • 1,890
  • 4
  • 31
  • 48
3
votes
2 answers

iOS 6: UITextField textAlignment does not change cursor position

I use an instance of UITextField in which the text is normally aligned to the right, but switches to left alignment when being edited. This is done by calling setTextAlignment: on the editingDidBegin event. Since the update to iOS 6 this behaves…
Klaus Boldt
  • 63
  • 1
  • 8
3
votes
1 answer

Numeric layout not sticky in secure UITextField?

My iOS6-targeted app has both normal and secure UITextFields. In all cases, the following settings are used: Capitalization: None Correction: No Keyboard: Default Appearance: Default The normal fields behave as I'd expect when I tap the "@123"…
user81434
3
votes
3 answers

Show UITextField keyboard on firstResponder even when userInteractionEnabled = NO

I have a UITextField that is first responder. I want to show keyboard when entering the view but I want to do that the user will not be able to edit it and the cursor will be hidden all time as well. When you click on a keyboard letter, it will be…
ytpm
  • 4,962
  • 6
  • 56
  • 113
3
votes
1 answer

UIView resizing based on edges

How to resize UIView based on its edges? Actually I am creating UITextField programmatically, and if User want then they can increase and decrease UITextField's height and width by dragging its edges.. I do not want to change its height and width…
Mehul Mistri
  • 15,037
  • 14
  • 70
  • 94
3
votes
4 answers

Text field decimal entry format

I want to show float digits in textfield upto two decimal points as entered in an ATM machine to withraw amount. like, 0.03. if i enter a new digit say 6, it would be like, 0.36 and so on. Please suggest me the way to do so. Thanks
Mohit Manhas
  • 3,471
  • 1
  • 17
  • 21