AccessibilityIdentifier nil, when set to xib, must be set from custom runtime attributes

When I set the accessibilityIdentifier in the Interface Builder Accessibility → Enabled → Identifier section, the .accessibilityIdentifier property of the associated view is nil at runtime.

However, when I install it through the User Defined Runtime Attributes , it works fine.

"Custom runtime attributes" is a workaround, but a confusing and "ancient secret" that I would foolishly explain to an Android developer. "Oh, this field does not work, you have to install it there, on the place where nothing is said about what we actually set"

Has anyone else seen this? Is this new with Xcode 7?

enter image description here

+7
ios xcode interface-builder
source share
1 answer

I experience the same problem in Xcode 7 when using the default accessibility area, but only on iOS 8. On iOS 9, accessibilityIdentifier NOT nil .

+2
source share

All Articles