UIAlertController custom font, size, color

后端 未结 25 1653
遥遥无期
遥遥无期 2020-11-22 09:06

I am using new UIAlertController for showing alerts. I have this code:

// nil titles break alert interface on iOS 8.0, so we\'ll be using empty strings
UIAle         


        
25条回答
  •  长情又很酷
    2020-11-22 09:38

    Please find this category. I am able to change FONT and Color of UIAlertAction and UIAlertController.

    Use:

    UILabel * appearanceLabel = [UILabel appearanceWhenContainedIn:UIAlertController.class, nil];
    [appearanceLabel setAppearanceFont:yourDesireFont]];  
    

提交回复
热议问题