获得“大文本".设置/辅助功能中显示的字体大小? [英] Getting the "Large Text" font size from Settings/Accessibility?

查看:73
本文介绍了获得“大文本".设置/辅助功能中显示的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置/辅助功能大文本"设置可设置某些内置应用程序中的文本大小.

The Settings/Accessibility "Large Text" setting sets the text size in some built-in Apps.

如何掌握要在自己的应用中使用的此设置?我当然可以在我的应用程序中创建一个私人设置,但是我宁愿使用全局设置.

How can I get hold of this setting to be used in my own App? I can create a private setting in my App of course, but I'd rather use the global setting.

我期望 [UIFont systemFontSize] 调整大小,但是无论Accessibility中的设置如何,它总是返回14.

I was expecting [UIFont systemFontSize] to adjust the size, but it always returns 14 regardless of the setting in Accessibility.

推荐答案

据我所知这是不可能的.我打开了 rdar://10660048 ,以防万一,希望类似的东西可以在iOS中使用6.x.如果有人知道私有API可以访问该值,那么我就不介意知道.

As far as I know this is not possible. I opened rdar://10660048 just in case, hopefully something similar will be available in iOS 6.x. If somebody knows private APIs to access the value I wouldn't mind knowing.

这篇关于获得“大文本".设置/辅助功能中显示的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆