ui集合视图中未更新辅助功能元素

时间:2019-03-15 07:39:16

标签: xcuitest

我有水平的Ui集合视图,例如     SegmentCollectionViewCel是lUICollectionViewCell的@interface

SegmentCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:SEGMENT_COLLECTIONVIEW_CELL_ID forIndexPath:indexPath];
    SegmentItem *item = [segmentViewModel.segments objectAtIndex:[indexPath row]];
    cell.segmentNameLabel.text = item.segmentName;
    cell.segmentNameLabel.font = segmentViewModel.segmentFont;
    cell.segmentNameLabel.textColor = segmentViewModel.segmentTextColor;
    cell.segmentNameLabel.isAccessibilityElement = true;
    cell.segmentNameLabel.accessibilityLabel = item.segmentName;

当我点击单元格时,辅助功能不会更新

我需要编写任何函数来更新可访问性吗?

0 个答案:

没有答案