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:
- Hit settings.app on the simulator
- In General, flip “Accessibility Inspector” to ON
- 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).
- Move it somewhere inconspicuous
- 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.