Skip to content

Alert - this is a simple class for displaying an alert from anywhere in your application (iOS and macOS)

License

Notifications You must be signed in to change notification settings

svanichkin/Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alert

Alert - this is a simple class for displaying an alert from anywhere in your application (iOS and macOS)

This library works on many projects such as Mubert, Morse, etc. Top of App Store.

Easy to use:

[Alert
 showWithTitle:@"Title"
 message:@"Text"
 buttons:@[@"Delete".destructiveStyle],
           @"OK",
           @"Cancel".cancelStyle]
 handler:^(NSInteger buttonIndex)
 {
     if (buttonIndex == 0)
     {
        // Delete
     }
 }];
 
 NSError *error = nil;
 ...
 if (error)
     [error show];

All button names indicated in English are automatically translated from the system. Or they are looking for a translation in the application localization files. For example, “Cancel” will be translated automatically, and “MyButtonName” will search for a translation in the application localization file.

For an AppKit application, translation will always be in the application localization file.

The class itself defines the top controller for display. Enjoy.

About

Alert - this is a simple class for displaying an alert from anywhere in your application (iOS and macOS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published