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


  • 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 {

ViewController.m PAGE TOP

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

Reference PAGE TOP


0 Comments Leave a comment

Please login in order to leave a comment.

Newest first

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.