How to set the Identifier of a UIView in Xcode/iOS for debugging auto layout?

autolayout, ios, xcode4.5

Solution

Setting `accessibilityIdentifier` on `UIView` does the trick. Tested on Xcode 6.4, iOS 8.4.

Problem

During a talk from WWDC 2012 (Best Practices for Mastering Auto Layout), the presenter said that you can set a UIView identifier in Xcode to aid in debugging auto layout: This seems like a really good idea, but in Xcode 4.5.1 for my iOS project, there is no way that I can see to set the Identity of a UIView. How can I set the Identity of a UIView in Xcode 4.5.1? If this isn't possible in iOS projects, how can I get the same functionality?

Original source

Related problems