Skip to content

DimasSup/UIAlertController-UIAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

UIAlertController-UIAlertView

Use UIAlertController instead deprecated in 8.0 UIAlertView.

Expample:

UIAlertView Old

[[[UIAlertView alloc] initWithTitle:@"Title Text" message:@"Message Text" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil] show];

with UIAlertController+UIAlertView

[[UIAlertController initWithTitle:@"Title Text" message:@"Message Text" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil] show];

You can use delegate - UIAlertViewDelegate_Modern instead UIAlertViewDelegate

- (void)alertView:(nonnull UIAlertController *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
- (void)alertView:(nonnull UIAlertController *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex;
- (void)alertView:(nonnull UIAlertController *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex; 

All of them calling at the same time. For any question or suggestion email me [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published