collectionView默认选中第一个
作者:
lizhi_boy | 来源:发表于
2017-12-05 18:34 被阅读585次 [self.titleView selectItemAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0] animated:YES scrollPosition:UICollectionViewScrollPositionNone];
if ([self.titleView.delegate respondsToSelector:@selector(collectionView:didSelectItemAtIndexPath:)]) {
[self.titleView.delegate collectionView:self.titleView didSelectItemAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
}
本文标题:collectionView默认选中第一个
本文链接:https://www.haomeiwen.com/subject/ftocixtx.html
网友评论