Accessibility Identifier not visible in Accessibility Inspector with iOS Simulator

前端 未结 5 1498
后悔当初
后悔当初 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:37

    There is actually a way, and Chris Prince missed out on explaining how to get to it. You start off by bringing up the inspector.

    The bar above basically focuses the inspector to whatever process you need to inspect. In our case it should be simulator.
    Edit: as pointed out by Dallas, you have to click on the left half revealing the possible targets. Click on the Simulator to have the Inspector target it.

    Something to note that it seems that simulators have their own information to show. Focusing on the simulator will automatically add in the identifier and show the proper accessibility information.

    voila!

提交回复
热议问题