PDA

View Full Version : UIAlertView-show




yzhaocn
Nov 20, 2008, 09:38 PM
-(IBAction)click: (id)sender
{
...
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"This is a Alert!" delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
[alert show];
[alert release]; //<==breakpoint is added here;
...
}

When the Button is clicked, program excutes to the breakpoint but the UIAlertView is not appeared.

thanks.