I have a xib file which has a view. Under a view, I have few labels... I am working on UIAutomation and hence want to add accessibility identifiers to the view and each of these labels. How can I do it inside the xib? I googled and found that a field named "identifier" should be used... but I cannot see any suck field for view and label.
Please suggest.
Here:
You have to set it up manually, so add a key pressing the + button, change the type to String and the name to "identifier".
in the "Identity Inspector" (3rd tab)
You Will see a header "User Defined Runtime attributes" there you need to add the key "accessibilityIdentifier" of type string and the value is your id :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With