UIAlertController-MZStyle icon indicating copy to clipboard operation
UIAlertController-MZStyle copied to clipboard

Title and message not visible on iOS 10

Open mickeyl opened this issue 8 years ago • 7 comments

As per iOS 10b2, the title and message is not visible when using this. Perhaps they rearranged the view hierarchy (again...)?

mickeyl avatar Jul 27 '16 09:07 mickeyl

I have investigated this and yes, they have rearranged the view hierarchy, even they are using UIStackView for actions. Looking for a solution as I also need to support iOS 10.

iltercengiz avatar Aug 26 '16 12:08 iltercengiz

Is there any ways to set the message colour, when I use the dark mode, the message is also the black colour on ios 9, and it's able to change the button colours but no ways to set the message colour ? and also try every style all the message color is black in alter view. 970035af-7b95-4be4-adc2-78ec03f6b857

my codes: [UIAlertController mz_applyCustomStyleForAlertControllerClass:[UIAlertController class]]; MZAlertControllerStyle *defaultStyle = [UIAlertController mz_sharedStyle]; defaultStyle.blurEffectStyle = UIBlurEffectStyleDark; defaultStyle.backgroundColor = RF_WHITE_COLOR; defaultStyle.defaultButtonColor = RF_WHITE_COLOR; defaultStyle.destructiveButtonColor = RF_WHITE_COLOR;

JoneRen avatar Sep 17 '16 11:09 JoneRen

I forked this and added some code to account for iOS10. I also added in properties for Title and Message color. https://github.com/vinced45/UIAlertController-MZStyle . I'll test it some more and then do a pull request.

vinced45 avatar Oct 26 '16 04:10 vinced45

@vinced45 Thanks for the update. In action sheet mode I can't seem to change the cancel button's appearance. Can you confirm that?

mickeyl avatar Oct 26 '16 11:10 mickeyl

@mickeyl ,I also find this problem,can you have some way to solve it,thank you!

zhengpingqu avatar Mar 20 '17 13:03 zhengpingqu

@quzhengping After struggling for quite a while with it, I finally gave up with the idea of tweaking the built-in alerts to my liking. It will always be potentially unstable. I'm now using https://github.com/Friend-LGA/LGAlertView with an own wrapper API on top. This solves all my customization issues.

mickeyl avatar Mar 20 '17 13:03 mickeyl

@mickeyl Thank you.LGAlertView solves my issues!

zhengpingqu avatar Mar 21 '17 05:03 zhengpingqu