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

UITextField PlaceHolder Color change Monotouch

I have been trying to change the color of UItextfield placeholder and I have had no luck. I have tried sub classing, and I have tried modifying the Attributed string but nothing worked. This is the subclass I tried. public class CustomTextbox :…
pjapple15
  • 299
  • 4
  • 10
3
votes
2 answers

UITextField with rounded corners only on top

I want to implement an UITextField which has rounded corners only at top left and top right corner. I know about the setter method setCornerRadius: which is a default option of UITextField, but this option only allows me to make all four corners of…
user1287145
3
votes
2 answers

ios 7.1 UITextField tint color doesn't change in storyboard

Up till iOS 7.0, the text field tint color changed to the color you set in storyboard. As of iOS 7.1, it won't change unless you do it programmatically. Is this a bug? Does anyone know?
funct7
  • 3,407
  • 2
  • 27
  • 33
3
votes
1 answer

UIKeyboardTypeNamePhonePad auto capitalization

I am using a UIKeyBoardTypeNamePhonePad to allow entry of just letters and numbers. It is missing some functionality that I need. First, I need all the letters that are typed to be capitalized. I can just change it as it enters the text view, but…
rickharrison
  • 4,867
  • 4
  • 35
  • 40
3
votes
1 answer

How to change cursor style of UITextView?

When editing in a UITextView, I know how to change the cursor color by setting tintColor. Is there any why to change cursor to another style? For example: a blinking fixed-width box. or a underline "_"
Strong84
  • 1,869
  • 2
  • 19
  • 24
3
votes
2 answers

UITextField horizontal alignment bug since iOS 7.1

I've got a strange (and very annoying) bug while trying to horizontally centering some text within a UITextField. I have placed a UITextField using Storyboard with plain-text (not attributed) setting the horizontal alignment to center. Text appears…
Heiko
  • 191
  • 1
  • 5
3
votes
0 answers

Can't endBackgroundTask: no background task exists with identifier 23?

I know this might be a duplicate question, I getting this in log. Can't endBackgroundTask: no background task exists with identifier 23, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
Sanoj Kashyap
  • 5,020
  • 4
  • 49
  • 75
3
votes
4 answers

UITextField Strange Behaviour When Entering Text

Want to Search this Issue on Google But Do't Know What i need to write for find the exact reason So i am here. ISSUE Create UITextField using Interface Builder and Run the project and while i am entering any value using iOS Keyboard this is what…
Buntylm
  • 7,345
  • 1
  • 31
  • 51
3
votes
2 answers

Show/Hide Password Toggle. Bug or Feature?

I'm developing an iPad application using XCode and Objective-C. I have a UI that includes a password entry field and a show/hide button (code shown below). A tester has pointed out the following inconsistent behaviour. If the password is hidden…
Vince O'Sullivan
  • 2,611
  • 32
  • 45
3
votes
0 answers

setBaseWritingDirection: on UITextField does not work

I'm trying to configure an UITextField for Right-To-Left writing. I Can't get it to work. The problem starts with the required UITextRange parameter for setBaseWritingDirection, I will always get nil as return value. textfield.text = @"hello…
tzer
  • 280
  • 4
  • 11
3
votes
1 answer

Keyboard events called before UITextView delegate events

I have a UITableView with UITextViews and UITextFields on it's cells. As obvious the keyboard overlaps the lower cells and you cannot see what you are typing. So I want to scroll the tableview to get the field visible. I wrote the code the iOS docs…
6rod9
  • 1,407
  • 12
  • 29
3
votes
1 answer

Simple example of CALayer usage -- perhaps in a UITextField

I have an requirement to implement a custom keyboard for a Cocoa Touch data entry screen containing multiple UITextFields. I've built the keyboard, and everything is working except now I need to figure out how to implement a blinking cursor. (When…
BridgetG
  • 113
  • 1
  • 14
3
votes
4 answers

How do I add padding to a UITextField with an icon

I currently have the following code to setup a password textfield: self.passwordTextField = [UITextField new]; self.passwordTextField.placeholder = @"Password"; self.passwordTextField.font = [UIFont systemFontOfSize:18.f]; …
Steve Walsh
  • 6,363
  • 12
  • 42
  • 54
3
votes
4 answers

Tapping between UITextFields in iOS7

When a UITextField is selected and has a keyboard shown, if I tap other parts of the view the keyboard disappears. If I tap another UITextField, the keyboard stays up, the first textfield is deselected, and nothing happens. Then I need to tap on the…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
3
votes
1 answer

ReactiveCocoa - observing isFirstResponder property and UITextField with clearsOnBeginEditing set to YES

I am new to ReactiveCocoa, but I think it's very nice and outstanding technique for reducing code complexity. I just started experiencing with the framework, and not everything is clear for me at the moment, so excuse me if my problem can be solved…
Darrarski
  • 3,882
  • 6
  • 37
  • 59