Tuesday, October 9, 2012

Showing alert on the screen

In .Net, we are using MessageBox to show the alert on the screen. In iOS, we are going to use UIAlertView.

Below is the sample code copy

        UIAlertView *av = [[[UIAlertView alloc] initWithTitle:@"Helo world"
            message:@"This is the popup message." 
            delegate:self cancelButtonTitle:@"OK"
            otherButtonTitles:@"Clear", nil]];
        [av show];

No comments:

Post a Comment