UICollectionView代码设置表头

2019-06-04  本文已影响0人  原味丿丿咖啡Vitas
    UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, -200, SCREEN_WIDTH, 200)];
    self.collectionView.contentInset = UIEdgeInsetsMake(200, 0, 0, 0);
    [self.collectionView addSubview:textView];
上一篇下一篇

猜你喜欢

热点阅读