Commit bd8f22f9 authored by Carola Nitz's avatar Carola Nitz

VLCTrackSelectorView: fix bug where the height was sometimes 0 and the Trackselector wouldn't show

parent 7153bd37
Pipeline #228 passed with stage
in 0 seconds
......@@ -33,7 +33,7 @@
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if(self){
if (self) {
_trackSelectorTableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
_trackSelectorTableView.delegate = self;
_trackSelectorTableView.dataSource = self;
......@@ -52,7 +52,8 @@
return self;
}
- (void)configureForDeviceCategory {
- (void)configureForDeviceCategory
{
_trackSelectorTableView.opaque = NO;
_trackSelectorTableView.backgroundColor = [UIColor clearColor];
_trackSelectorTableView.allowsMultipleSelection = YES;
......@@ -105,6 +106,8 @@
- (void)updateView
{
[_trackSelectorTableView reloadData];
[self setNeedsLayout];
[self layoutIfNeeded];
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
......
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