目前看来,ASTableNode和ASTableView都缺乏节页眉/页脚视图的支持。
我只能找到一种协议方法:
- (nullable NSString *)tableNode:(ASTableNode *)tableNode titleForHeaderInSection:(NSInteger)section这说明不了什么。
并且委托/数据源设置器方法已经被AsyncDisplayKit拦截,所以我不能使用UIKit的方法来完成它。
所以,当我使用AsyncDisplayKit时,我可以添加节页眉/页脚视图吗?
发布于 2017-03-29 06:54:34
只需发现ASTableNode将调用UITableViewDelegate方法。
所以只需实现这些方法
- (nullable UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;它会像以前一样工作。
https://stackoverflow.com/questions/42997437
复制相似问题