Tutorial details

Creating an Alert | App Code for Sale | Preview

Creating an Alert | iOS Tutorial

How to create an alert

Overview PAGE TOP

Reference: http://www.geekylemon.com/WEBPROTECT-xcodealert.htm

In this tutorial i will be showing you how to create an alert

Features:

  • 1 round rect button

An alert works by simply pressing a round rect button and a message will appear in the centre of the screen the same as when you receive a text message, but the the text you set will appear. Used for giving the user info on the app or instructions

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
}
-(IBAction)alert;
@end

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)alert {
UIAlertView *alert = [[UIAlertViewalloc]
initWithTitle:@"title"
message:@"the message"
delegate:nil
cancelButtonTitle:@"Dismiss"
otherButtonTitles:nil];
[alert show];
[alert release];
}
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodealert.htm

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.