Search code examples
iosaccessibilityios-ui-automation

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


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?


Solution

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

    enter image description here

    You could simply access it as view.accessibilityIdentifier