相关疑难解决方法(0)

indexPathForPreferredFocusedView未被调用

我需要指定哪个单元格应该获得焦点.

根据Apple文档,indexPathForPreferredFocusedView如果remembersLastFocusedIndexPath属性是false,或者如果没有保存的索引路径,则应调用委托方法,因为之前没有单元格.

在我的情况下,我在a中使用集合视图UIViewController并设置remembersLastFocusedIndexPathfalseindexPathForPreferredFocusedView未被调用.

怎么解释这个行为?

focus apple-tv uicollectionview tvos

4
推荐指数
2
解决办法
2014
查看次数

标签 统计

apple-tv ×1

focus ×1

tvos ×1

uicollectionview ×1