Skip to content

TiwariPreeti/PTAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PTAlertView

============

PTAlertView is a Customizable AlertView, written in Objective C

Manually

Clone or Download this Repo. Then simply drag the folder AlertView to your Xcode project

Adding PTAlertView

Start by adding the following to your desired View Controller:

#import "PTAlertClass.h"

Presenting an PTAlertView

## For multiple option

    [[PTAlertClass sharedManager] presentAlertWithTitle:@"Alert!!" message:@"Do you want to use this app?" andButtonsWithTitle:@[@"YES",@"NO"] onController:self dismissedWith:^(NSInteger index, NSString *buttonTitle) {
        [self.view endEditing:YES];
        if (index == 0) {
        }
        else if (index == 1){
        }
    }];
    
##For single option
[[PTAlertClass sharedManager] displayInformativeAlertwithTitle:@"" andMessage:@"Write your alert message here" onController:self];

About PTAlertView

PTAlertView is a customizable and beautifully designed AlertView. I designed this because I've always wanted to have access to change the different attributes of the default UIAlertView at one place.

All improvements and suggestions are welcome.

Cheers 🍻

Author

Created and designed by [Preeti Tiwari].

About

Simple Alert View. Written in Objective-C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published