I have a static `UITableView` with various cells in it. I need to hide/show some of those cells, so I've implemented `heightForRowAtIndexPath` and `return 0` when appropriate in order to hide the right cells. This works great for sighted users, but for those who use VoiceOver those elements are still highlighted and accessible when they should not be. How can I ensure those `UITableViewCell`s are no longer accessible when I change their height to 0?

I've tried setting the cell to not be an accessible element as well as setting the elements to be hidden but this has no effect on it. The cell has not been subclassed - it's just a `UITableViewCell`. I have not set anything in regards to accessibility on the cell nor the cell's contents (`textLabel`, `detailTextLabel`).

Doesn't do the trick:

```
self.cellToHide.isAccessibilityElement = NO;
self.cellToHide.accessibilityElementsHidden = YES;

```