In our application we display a list of items and each item has an image which can either be hidden or displayed.
The issue is that if the image is initially hidden, when we set hidden = false
, the image is displayed but the Accessibility Inspector doesn't identify it.
If we call reloadRows
then the image is identified by Accessibility Inspector.
However, I want to avoid calling reloadRows
when the visibility of the image changes because it adds complexity (weird dependencies).
What I've tried so far is the following:
- call
setNeedsDisplay()
on the cell - post
UIAccessibilityLayoutChangedNotification
Neither work.
Any other ideas of "refreshing / reloading" the cell so the Accessibility Inspector identifies the image?
Please note that I did set an accessibility identifier and isAccessibilityElement
is set to true, since after calling reloadRows
the image is identified.
Thanks, Cosmin