I have this code that changes the appearance of UILabel
s when they appear in UIAlertController
s:
UILabel *appearanceLabel = [UILabel appearanceWhenContainedInInstancesOfClasses:@[[UIAlertController class]]];
[appearanceLabel setAppearanceFont:kFontRegular(18)];
But this also affects the UILabels that appear in UIActivityViewController
s.
How can I exclude the UILabels in UIActivityViewController
?
Instead of trying to set / unset the appearance depending on your situation you may be able to subclass your own UIAlertController and use
UILabel *appearanceLabel = [UILabel appearanceWhenContainedInInstancesOfClasses:@[[MyAlertController class]]];
[appearanceLabel setAppearanceFont:kFontRegular(18)];
then when the action sheet opens it won't be your subclass so the rule won't apply.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With