Commit 3096f0e3 authored by Carola Nitz's avatar Carola Nitz

VLCPlaylistTableViewCell: set the selectedBackgroundColor to clear and remove unused class method

parent d9908ba7
......@@ -29,7 +29,6 @@ static NSString *kPlaylistCellIdentifier = @"PlaylistCell";
@property (nonatomic, strong) NSManagedObject *mediaObject;
+ (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident;
+ (CGFloat)heightOfCell;
- (void)collapsWithAnimation:(BOOL)animate;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment