Play-/Source/ui_ios/CoverViewCell.m

31 lines
500 B
Mathematica
Raw Permalink Normal View History

#import "CoverViewCell.h"
@implementation CoverViewCell
2020-12-02 18:37:31 -05:00
- (id)initWithFrame:(CGRect)frame
{
2020-12-02 18:37:31 -05:00
self = [super initWithFrame:frame];
2017-10-30 13:21:29 -04:00
if(self)
{
// Initialization code
2020-12-02 18:37:31 -05:00
NSArray* arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"coverCell" owner:self options:nil];
2017-10-30 13:21:29 -04:00
if([arrayOfViews count] < 1)
{
return nil;
}
2020-12-02 18:37:31 -05:00
if(![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]])
2017-10-30 13:21:29 -04:00
{
return nil;
}
2020-12-02 18:37:31 -05:00
self = [arrayOfViews objectAtIndex:0];
}
2020-12-02 18:37:31 -05:00
return self;
}
@end