ios - 更改应用程序中所有 UIAlertController 的字体

标签 ios iphone swift ios10 uialertcontroller

如何更改应用中所有 UIAlertController 的字体?

有没有像我们为其他 UIElements 做的那样的方法

例如:

UINavigationBar.appearance().titleTextAttributes = [.font: UIFont.boldSystemFont(ofSize: 16)]

最佳答案

这是不可能的。更改 UIAlertViewController 字体、颜色等也是私有(private) API。所以没有在 AppStore 发布

UIAlertController custom font, size, color

关于ios - 更改应用程序中所有 UIAlertController 的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52756826/

相关文章:

ios - 旋转时自动排列网格样式元素的最佳方法?

ios - 接口(interface)声明中@property和变量之间的区别

iphone - 核心数据问题 : -[NSManagedObject setValue:]: unrecognized selector sent to instance

iOS Swift,约束将 View 推离 Storyboard

ios - 将委托(delegate)加载到 UITableView 时获取 EXC_BAD_INSTRUCTION

swift - 如何制作自定义圆形 UIImageView 子类?

ios - 如何对简单的 UIView 动画执行操作

java - 在 java 中使用 parse4j 向设备发送推送通知

iphone - 告诉哪个 ViewController 推送了 DetailViewController

iphone - UIUserInterfaceIdiomPhone 也适用于 iPod touch?