UIAlertView-show

Discussion in 'iOS Programming' started by yzhaocn, Nov 20, 2008.

  1. macrumors newbie

    Joined:
    Nov 20, 2008
    #1
    -(IBAction)click: (id)sender
    {
    ...
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:mad:"Alert" message:mad:"This is a Alert!" delegate:nil cancelButtonTitle:mad:"Cancel" otherButtonTitles:mad:"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.
     

Share This Page