uibutton - How do I add a UIAlertView on the press of a button? -
i want create uialertview on press of button. in game tell player little level before proceed , uialterview. how do make come when press button?
in action button function put code:
uialertview *message = [[uialertview alloc] initwithtitle:@"title of popup" message:@"the message display user" delegate:nil cancelbuttontitle:@"ok" otherbuttontitles:nil]; [message show];
if don't use arc should release allocated variable after using "show" method:
[message release];
hope helps.
Comments
Post a Comment