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"; ...@@ -29,7 +29,6 @@ static NSString *kPlaylistCellIdentifier = @"PlaylistCell";
@property (nonatomic, strong) NSManagedObject *mediaObject; @property (nonatomic, strong) NSManagedObject *mediaObject;
+ (VLCPlaylistTableViewCell *)cellWithReuseIdentifier:(NSString *)ident;
+ (CGFloat)heightOfCell; + (CGFloat)heightOfCell;
- (void)collapsWithAnimation:(BOOL)animate; - (void)collapsWithAnimation:(BOOL)animate;
......
...@@ -26,22 +26,17 @@ ...@@ -26,22 +26,17 @@
@implementation VLCPlaylistTableViewCell @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; [self _removeObserver];
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;
} }
- (void)prepareForReuse - (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