美文网首页
如何为UICollectionView添加整体的header v

如何为UICollectionView添加整体的header v

作者: huicuihui | 来源:发表于2018-04-04 18:12 被阅读33次
    self.collectionView  =  [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, 320, self.view.frame.size.height) collectionViewLayout:flowlayout];  
    self.collectionView.contentInset = UIEdgeInsetsMake(50, 0, 0, 0);  
    UIImageView *imagev = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"015.png"]];  
    imagev.frame = CGRectMake(0, -50, 320, 50);  
    [self.collectionView addSubview: imagev];  
    [self.view addSubview: _collectionView]; 
    

    相关文章

      网友评论

          本文标题:如何为UICollectionView添加整体的header v

          本文链接:https://www.haomeiwen.com/subject/zvklhftx.html