Show a UI Alert With Message & Title: Code Snippet

You can show your alert message by pasting following code below:


  UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert !!!"  
                           message: @"hello, this is message"  
                           delegate:nil  
                      cancelButtonTitle:@"OK"  
                      otherButtonTitles:nil];  
   [alert show];