UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, -200, SCREEN_WIDTH, 200)];
self.collectionView.contentInset = UIEdgeInsetsMake(200, 0, 0, 0);
[self.collectionView addSubview:textView];
UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, -200, SCREEN_WIDTH, 200)];
self.collectionView.contentInset = UIEdgeInsetsMake(200, 0, 0, 0);
[self.collectionView addSubview:textView];
本文标题:UICollectionView代码设置表头
本文链接:https://www.haomeiwen.com/subject/scglxctx.html
网友评论