How to change font size and color of UIAlertAction in UIAlertController

后端 未结 4 1468
孤独总比滥情好
孤独总比滥情好 2021-01-06 17:57

In the image above how to change the font size and color of \"Done\", \"Some Other action\"? and how to change the font size and color of \"title\", and \"message\"

4条回答
  •  离开以前
    2021-01-06 18:27

    I wasn't able to change the font, but you can change the font colour. From the 'hogan' example, changing the font colour on UIAlertAction:

    [button setValue:[UIColor greenColor] forKey:@"titleTextColor"];
    

提交回复
热议问题