diff --git a/Sources/VLCPlaylistTableViewCell.h b/Sources/VLCPlaylistTableViewCell.h index cb8f98726d079b3f19546a12f0408601aec84044..f7cbfc7e7a7e210e60b19154f4295d9f50a9f504 100644 --- a/Sources/VLCPlaylistTableViewCell.h +++ b/Sources/VLCPlaylistTableViewCell.h @@ -29,7 +29,6 @@ static NSString *kPlaylistCellIdentifier = @"PlaylistCell"; @property (nonatomic, strong) NSManagedObject *mediaObject; -+ (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident; + (CGFloat)heightOfCell; - (void)collapsWithAnimation:(BOOL)animate; diff --git a/Sources/VLCPlaylistTableViewCell.m b/Sources/VLCPlaylistTableViewCell.m index 63b4408c8bd8c337bbb14178ab082a2369d49b39..9b47fbb2ff6a4dba57a162006d261a84a6cc6962 100644 --- a/Sources/VLCPlaylistTableViewCell.m +++ b/Sources/VLCPlaylistTableViewCell.m @@ -26,22 +26,17 @@ @implementation VLCPlaylistTableViewCell -- (void)dealloc +- (void)awakeFromNib { - [self _removeObserver]; + [super awakeFromNib]; + UIView *bgColorView = [[UIView alloc] init]; + bgColorView.backgroundColor = [UIColor clearColor]; + [self setSelectedBackgroundView:bgColorView]; } -+ (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident +- (void)dealloc { - NSArray *nibContentArray; - nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCPlaylistTableViewCell" owner:nil options:nil]; - NSAssert([nibContentArray count] == 1, @"meh"); - NSAssert([[nibContentArray lastObject] isKindOfClass:[VLCPlaylistTableViewCell class]], @"meh meh"); - VLCPlaylistTableViewCell *cell = (VLCPlaylistTableViewCell *)[nibContentArray lastObject]; - cell.multipleSelectionBackgroundView = [[UIView alloc] initWithFrame:cell.frame]; - cell.metaDataLabel.hidden = YES; - - return cell; + [self _removeObserver]; } - (void)prepareForReuse