Ios6 UICollectionViewCell不显示任何内容

Ios6 UICollectionViewCell不显示任何内容,ios6,uicollectionview,Ios6,Uicollectionview,我有一个定制的CollectionViewCell @interface FBPicCell : UICollectionViewCell @property (strong, nonatomic) IBOutlet UILabel *picby; 在我的代码中viewDidLoad我有 [self.fbpiccollectionView registerClass:[FBPicCell class] forCellWithReuseIdentifier:@"fbpiccell"]; 在c

我有一个定制的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]];

但我什么也没看到,只有白色的边框。不知道我把事情搞砸了。任何指针都会有帮助。

我在注册你的电话时遇到了同样的问题 注册nib以及-

[collectionView registerNib:[UINib nibWithNibName:@"cellname" bundle:nil] forCellWithReuseIdentifier:@"cellname"];
这对我有用
关于

我也经历过这种行为。谢谢!!!这让我快发疯了。我在使用iOS8的Xcode6.1上,registerClass不工作