3

カスタム 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]];

しかし、何も見えません。白い枠だけです。私が物事を台無しにしている場所がわからない。どんなポインタでも役に立ちます。

4

1 に答える 1