Top "Uitextfielddelegate" questions

The methods declared by the UITextFieldDelegate protocol allow the adopting delegate to respond to messages from the UITextField class.

UITextField text change event

How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for something, but it did …

ios objective-c swift event-handling uitextfielddelegate
How shouldChangeCharactersInRange works in Swift?

I'm using shouldChangeCharactersInRange as a way of using on-the-fly type search. However I'm having a problem, shouldChangeCharactersInRange gets called before …

ios objective-c swift uitextfielddelegate nsrange
Switching between Text fields on pressing return key in Swift

I'm designing an iOS app and I want that when the return key is pressed in my iPhone it directs …

ios swift uitextfielddelegate
Cannot assign a value of type ViewController to a value of type UITextFieldDelegate?

Here's the error when I wrote the line self.MessageTextField.delegate = self: /ChatApp/ViewController.swift:27:42: Cannot assign a value of …

ios swift delegates syntax-error uitextfielddelegate
Detect backspace Event in UITextField

I am searching for solutions on how to capture a backspace event, most Stack Overflow answers are in Objective-C but …

ios swift cocoa-touch uikit uitextfielddelegate
How to detect delete key on an UITextField in iOS 8?

I have subclassed UITextField and implemented the UIKeyInput protocol's deleteBackward method to detect backspace being pressed. This works fine on …

ios uitextfield ios8 uitextfielddelegate uikeyinput
Next/Done button using Swift with textFieldShouldReturn

I have a MainView that adds a subview (signUpWindow) when a sign up button is pressed. In my signUpWindow subview (…

ios swift xcode6 subview uitextfielddelegate
UITextField lose focus event

I have an UITextField in a MyCustomUIView class and when the UITextField loses focus, I'd like to hide the field …

ios objective-c uitextfield uitextfielddelegate
Detecting a change to text in UITextfield

I would like to be able to detect if some text is changed in a UITextField so that I can …

objective-c ipad ios6 uitextfield uitextfielddelegate
Swift how to resign first responder on all uiTextfield

I would like to use resign the first responder on all uitextfield. I'm able to complete this by placing the …

swift uitextfielddelegate