Is it possible to programatically disable 'Button Shapes' in iOS 7.1?

我的未来我决定 提交于 2019-12-13 02:29:49

问题


As the title states, is it possible to disable it? Granted this may not be a user-friendly thing to do but it does mess with the design of some of my apps.


回答1:


I know of no way to do this short of reimplementing the UIKit controls that you want to have ignore the setting.

Please, please consider changing your design rather than attempt to subvert system settings. Button Shapes is an Accessibility setting for a reason: some users rely on this sort of thing to use apps at all, not just to change the appearance of the system.

(Reimplementing UIKit controls would exacerbate this problem, too, since you're not only avoiding one Accessibility setting but would also have to reimplement many others, whereas the standard UIKit controls give you pretty good accessibility support "for free.")



来源:https://stackoverflow.com/questions/22313847/is-it-possible-to-programatically-disable-button-shapes-in-ios-7-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!