SmartPhone Dev/iPhone

iPhone – Create a Message Box Using UIAlertView

랜썸 2010. 8. 13. 17:22

In iPhone Application, you can use the UIAlertView to create a message box. The following code is an example.

--------------------------------------------------------------------------------
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
                                                            message:@"Your Messaage"
                                                             delegate:nil 
                                                 cancelButtonTitle:@"OK" 
                                                  otherButtonTitles: nil]; 

[alert show];
[alert release];

반응형