カスタム CollectionViewCell があります
@interface FBPicCell : UICollectionViewCell
@property (strong, nonatomic) IBOutlet UILabel *picby;
私のコードでviewDidLoad
は
[self.fbpiccollectionView registerClass:[FBPicCell class] forCellWithReuseIdentifier:@"fbpiccell"];
そしてcellForItemAtIndexPath
機能的に
FBPicCell *cell = [cv dequeueReusableCellWithReuseIdentifier:@"fbpiccell" forIndexPath:indexPath];
cell.backgroundColor = [UIColor whiteColor];
[cell.picby setText:@"Pavan"];
[cell.picby setTextColor:[UIColor redColor]];
しかし、何も見えません。白い枠だけです。私が物事を台無しにしている場所がわからない。どんなポインタでも役に立ちます。