2015-08-14 18:31:00 -04:00
|
|
|
#import "CoverViewCell.h"
|
|
|
|
|
|
|
|
@implementation CoverViewCell
|
|
|
|
|
2020-12-02 18:37:31 -05:00
|
|
|
- (id)initWithFrame:(CGRect)frame
|
2015-08-14 18:31:00 -04:00
|
|
|
{
|
2020-12-02 18:37:31 -05:00
|
|
|
self = [super initWithFrame:frame];
|
|
|
|
|
2017-10-30 13:21:29 -04:00
|
|
|
if(self)
|
|
|
|
{
|
2015-08-31 14:59:13 -04:00
|
|
|
// 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)
|
|
|
|
{
|
2015-08-31 14:59:13 -04:00
|
|
|
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
|
|
|
{
|
2015-08-31 14:59:13 -04:00
|
|
|
return nil;
|
|
|
|
}
|
2020-12-02 18:37:31 -05:00
|
|
|
|
|
|
|
self = [arrayOfViews objectAtIndex:0];
|
2015-08-31 14:59:13 -04:00
|
|
|
}
|
2020-12-02 18:37:31 -05:00
|
|
|
|
2015-08-31 14:59:13 -04:00
|
|
|
return self;
|
2015-08-14 18:31:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|