如何使Uilabel字体尺寸静态(无视iOS设置字体尺寸更改)?
如何使Uilabel字体尺寸静态(无视iOS设置字体尺寸更改)?
也就是说,当用户将其字体尺寸设置为iPhone的可访问性字体尺寸或更大的尺寸变焦时,我该如何使uilabel字体大小保持静态且因设置而不更改?
How to make UILabel font size static (disregard of iOS setting font size change)?
That is to say, when user set their font size to be larger in their iPhone's accessibility font size, or change the view to Zoomed In size, how do I keep the UILabel font size to be static and not changing because of settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这篇文章中找到了更多全面的答案:
固定在忽略动态类型时,在SwiftUi iOS 13+中的定制字体的大小
以及这篇不错的文章在2021年写道:
https://useyourloaf.com/blog/restricting-dynamic-type-siess
I found more comprehensive answers in this post:
Fixing the size of a custom font in SwiftUI iOS 13+ when ignoring Dynamic Type
As well as this nice article wrote in 2021:
https://useyourloaf.com/blog/restricting-dynamic-type-sizes