Last active
August 29, 2015 14:07
-
-
Save TzuYangLin/350e1496bedabd085370 to your computer and use it in GitHub Desktop.
XCode: How to set a placeholder to UIAlertView's textField
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIAlertView *alert = ......... | |
alert.alertViewStyle = UIAlertViewStylePlainTextInput; | |
alert.delegate = (id)self; | |
alert.tag = 0; | |
UITextField *textField = [alertView textFieldAtIndex:0]; | |
textField.placeholder = @"Test"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment