Set availability identifier in xib file

I have an xib file that has a view. I have few labels in the view ... I am working on UIAutomation and therefore want to add availability identifiers to the view and each of these labels. How can I do this inside xib? I googled and found that a field named "identifier" should be used ... but I don't see any suck field for the view and label.

Please offer.

+4
source share
2 answers

Here:

enter image description here

You must configure it manually, so add a key by pressing the + button, change the type to String and the name to "identifier".

+5
source

in "Identity Inspector" (3rd tab)

You will see the heading "Custom runtime attributes" there you need to add the key "accessibilityIdentifier" type string, and the value is your id :)

+2
source

All Articles