setting an accessibilityLabel on a UIImageView contained in UITableView header

后端 未结 3 2201
Happy的楠姐
Happy的楠姐 2021-02-08 10:43

I have a UITableView that I build in loadView. One of the things I do in loadView is create a UIView to act as the table head

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-08 11:05

    In Voice-Over , in order to make an element accessible :-

    1. you have to set setIsAccessibilityElement property as true which i don't find in your code.

    2. The other important point is that to make child elements (subviews) to be accessible , you have to seperately make them accessible while the parent should not be accessible(you have to specify this also).

    3. Implement the UIAccessibilityContainer Protocol in your custom - cell.

    It will be a big story if i go on .Please refer this Accessibility voice over by apple.

    Hope this helps.

提交回复
热议问题