uicollectionview headerview tableview

self.collectionView.contentInset = UIEdgeInsetsMake(50,0,0,0);

UIImageView*imagev = [[UIImageViewalloc]initWithImage:[UIImage imageNamed:@"100.jpg"]];

imagev.frame = CGRectMake(0, -50,320,50);

[self.collectionView addSubview: imagev];

[self.view addSubview:_collectionView];

你可能感兴趣的:(uicollectionview headerview tableview)