Xcode: Why does “User Interaction Enabled” appear twice?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 18:41:26

问题


This question applies to Xcode 3 and 4: Why does this checkbox appear twice? (under the Identity inspector and also under the Attributes inspector). And more important, howcome changing the value of one doesn't affect the other?


回答1:


The User Interaction Enabled in the Identity Inspector is referring to the Accessibility protocol. Here is a link to the Accessibility Programming Guide You tick different traits to modify how the elements responds to the Accessibility systems on the device.

On the Attributes Inspector, the User Interaction Enabled is applying to non-Accessibility interaction with the particular element.

If you're wondering about why to bother with Accessibility, here is a good Matt Gemmell post on why it matters.




回答2:


One is for the main functionality in app, and one (under Accessibility in identifier inspector) is for enabling some features for people with disabilities.



来源:https://stackoverflow.com/questions/5603867/xcode-why-does-user-interaction-enabled-appear-twice

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