27 June 2011 by Published in: Code, iphone No comments yet

UI accessibility labels being randomly set to nil, even though you’re positive you set them in the .nib?  User interface elements randomly don’t have the right accessibility name or accessibility value?

Here’s a magical, 100% undocumented fix:

  1. Hit settings.app on the simulator
  2. In General, flip “Accessibility Inspector” to ON
  3. In the rainbow-colored floating Accessibility Inspector that appears, tap the X in the upper-left corner (which is really more like a minimize button than a close button).
  4. Move it somewhere inconspicuous
  5. Restart instruments

With that window open, your accessibility elements will be magically right again!  The great depths of the accessibility libraries on the simulator may never be known, but at least your tests will pass…

 


Want me to build your app / consult for your company / speak at your event? Good news! I'm an iOS developer for hire.

Like this post? Contribute to the coffee fund so I can write more like it.

Comments

Comments are closed.

Powered by WordPress