Skip to content

m1entus/UIAlertController-MZStyle

Repository files navigation

UIAlertController-MZStyle

UIAlertController-MZStyle is a category on UIAlertController with possibility of customization.

Known Issues

Not work with ActionSheets on iPad.

Requirements

MZFormSheetPresentationController requires either iOS 8.x and above.

How To Use

// Tell UIAlertController that you will use custom style
[UIAlertController mz_applyCustomStyleForAlertControllerClass:[UIAlertController class]];

// Apply Global style

MZAlertControllerStyle *defaultStyle = [UIAlertController mz_sharedStyle];
defaultStyle.blurEffectStyle = UIBlurEffectStyleDark;
defaultStyle.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];

// And thats it...

Contact

Michal Zaborowski

Twitter

About

Category for UIAlertController customization

Resources

License

Stars

Watchers

Forks

Packages

No packages published