Commit 43973bb9 authored by Tobias's avatar Tobias

fix resizing of table-/collectionView when content view changed size while the...

fix resizing of table-/collectionView when content view changed size while the table-/collectionView was offscreen
parent 3e5c8c5c
......@@ -120,6 +120,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
_tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
_tableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
}
_tableView.frame = contentView.bounds;
[contentView addSubview:_tableView];
[_tableView reloadData];
} else {
......@@ -137,6 +138,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
[_collectionView addGestureRecognizer:_longPressGestureRecognizer];
[_collectionView registerNib:[UINib nibWithNibName:@"VLCPlaylistCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:@"PlaylistCell"];
}
_collectionView.frame = contentView.bounds;
[contentView addSubview:_collectionView];
[_collectionView reloadData];
}
......
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