m1entus / UIAlertController-MZStyle

Category for UIAlertController customization
MIT License
93 stars 21 forks source link

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