Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make textfield as first responder? #14

Closed
kohdesmond opened this issue Sep 2, 2015 · 1 comment
Closed

how to make textfield as first responder? #14

kohdesmond opened this issue Sep 2, 2015 · 1 comment

Comments

@kohdesmond
Copy link

Hi,

Just wondering how to make textfield as first responder?

Cheers

@kohdesmond kohdesmond changed the title how to have a longer message? how to make textfield as first responder? Sep 2, 2015
@kohdesmond kohdesmond reopened this Sep 2, 2015
@carlosa54
Copy link

let exampleController = DOAlertController(title: "Example", message: "This is an example", preferredStyle: .Alert)

This will make the textfield become the first responder when exampleController is presented

exampleController.addTextFieldWithConfigurationHandler( {(textField: UITextField!) in
                        textField.becomeFirstResponder()
                })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants