mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
30 lines
500 B
Objective-C
30 lines
500 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;
|
|
}
|
|
|
|
@end
|