can I set accessibility identifier in interface builder? Xcode4.2

后端 未结 5 1652
孤街浪徒
孤街浪徒 2020-12-09 08:31

I can only set Accessibility Label in interface builder, but in UI Automation,I need Accessibility Identifier to get the UI elements. any way to do this?

5条回答
  •  孤街浪徒
    2020-12-09 08:59

    In Xcode 7.1 (ios 9.0) you could do it as simple as possible. Please find the image attached.

    You could simply access it as view.accessibilityIdentifier

提交回复
热议问题