Tutorial details

Custom Alert Positioning | App Code for Sale | Preview

Custom Alert Positioning | iOS Tutorial

How to customise the position of your alerts

Overview PAGE TOP

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

In this tutorial i will be showing you how to customise the position of your alerts

Features:

  • 1 Round rect button

Customising your alerts position enables you to be able to display content around the alert so its not hidden with a centered alert

ViewController.h PAGE TOP

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

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)AlertButton {
    UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle:@"The Title"
                          message:@"The Message"
                          delegate:self
                          cancelButtonTitle:@"Dismiss"
                          otherButtonTitles:nil];
    alert.transform = CGAffineTransformIdentity;
    alert.transform = CGAffineTransformTranslate(alert.transform, 0.0, -100.0);
    [alert show];   
}
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodealertpositioning.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.