1
我的VoiceOver行为存在问题,在我看来有UITableView
。VoiceOver不专注于后退按钮
如果我回到ViewController VoiceOver跳转到先前选择的单元格,选择表格的单元格以触发segue。
在我的didSelectRowAtIndexPath
中,我打电话tableView.deselectRowAtIndexPath(indexPath, animated: true)
以防止单元格保持选定状态。
我尝试在viewDidAppear
中发布UIAccessibilityLayoutChangedNotification
或UIAccessibilityScreenChangedNotification
,但没有任何变化。
所以我的问题是:这是VO的正确行为?
如何在视图出现时始终关注后退按钮?
感谢这个建议,我尝试传递self.navigationController.navigationItem.backBarButtonItem,但它没有帮助。我最终禁用了viewController中0.1s所有视图的可访问性,然后重新启用它。 – lorenzoliveto