简体   繁体   中英

iOS Dismiss Alert Open Textfield

Is there a way in iOS to open up the textfield (Like the user clicked on it (bringing up the keyboard)) after they dismiss an alert? Don't have any code to show because I have no idea where to start! :)

Implement UIAlertViewDelegate method.

On clickedButtonAtIndex: method ,put the code to show the textfield, by changing hidden property or addSubview:

and to bring up the keyboard

[textField becomeFirstResponder];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM