Wednesday, December 15, 2010

Alert message sample

If you want to display a simple notification message like below, just copy paste the below code according your requirement.




UIAlertView *alert = [[UIAlertView alloc   initWithTitle:@"Only one picture allowed"   message:@"" 
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil]; 

[alert show];
[alert release]; 

in the message:"" part, you can mentioned whatever you want to display within the double quotes.

Happy coding :)

No comments:

Post a Comment