Guest User

Untitled

a guest
Jan 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //I think this is right
  2.  
  3. var message = [[UIAlertView alloc] init];
  4. message.title = "Dialog title here";
  5. message.message = "Main message here";
  6. [message addButtonWithTitle:@"Close text here"];
  7.  
  8. //For the effect, make sure your iPhone's unlocked
  9. [message show]; //You can run this over and over to show the same dialog box
  10.  
  11. /* You can change the text any time you want (except for the button) by
  12. running message.title or message.message again */
Add Comment
Please, Sign In to add comment