Skip to content

Instantly share code, notes, and snippets.

@TzuYangLin
Last active August 29, 2015 14:07
Show Gist options
  • Save TzuYangLin/350e1496bedabd085370 to your computer and use it in GitHub Desktop.
Save TzuYangLin/350e1496bedabd085370 to your computer and use it in GitHub Desktop.
XCode: How to set a placeholder to UIAlertView's textField
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