mirror of
https://github.com/libretro/Play-.git
synced 2024-12-13 20:22:25 +00:00
36 lines
566 B
Objective-C
36 lines
566 B
Objective-C
#import "CoverViewCell.h"
|
|
|
|
@implementation CoverViewCell
|
|
|
|
- (id)initWithFrame:(CGRect)frame
|
|
{
|
|
|
|
self = [super initWithFrame:frame];
|
|
|
|
if (self) {
|
|
// Initialization code
|
|
NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"coverCell" owner:self options:nil];
|
|
|
|
if ([arrayOfViews count] < 1) {
|
|
return nil;
|
|
}
|
|
|
|
if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) {
|
|
return nil;
|
|
}
|
|
|
|
self = [arrayOfViews objectAtIndex:0];
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
- (void)awakeFromNib
|
|
{
|
|
// Initialization code
|
|
}
|
|
|
|
@end
|