Accessibility Identifier not visible in Accessibility Inspector with iOS Simulator

前端 未结 5 1499
后悔当初
后悔当初 2021-02-15 13:00

I wanted to use the Accessibility Inspector to verify all the accessibility identifiers in my app running in the simulator (iOS 9.2).

Accessibility Inspector is able to

5条回答
  •  [愿得一人]
    2021-02-15 13:39

    Xcode is so flaky, sometimes the Accessibility Label or Identifier will not show in the Accessibility Inspector. When this happens I just

    1. Set the Label and/or Identifier
    2. Edit the display text under the Attribute Inspector, the value right under the Text selector. After doing a build I will change the value back.
    3. Or add a IBOutlet then delete it.

    If you change just the Label or Identifier Xcode does not detect it.

提交回复
热议问题