Commit 554ceb99 authored by Pierre SAGASPE's avatar Pierre SAGASPE

NetworkListView: fix the tableview offset when navigate to back

parent bc429621
Pipeline #147 failed with stage
in 0 seconds
...@@ -84,16 +84,17 @@ NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier"; ...@@ -84,16 +84,17 @@ NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier";
- (void)viewWillAppear:(BOOL)animated - (void)viewWillAppear:(BOOL)animated
{ {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
CGPoint contentOffset = self.tableView.contentOffset; CGPoint contentOffset = CGPointMake(0, _searchBar.bounds.size.height);
contentOffset.y += CGRectGetHeight(self.tableView.tableHeaderView.frame); [self.tableView setContentOffset:contentOffset animated:NO];
self.tableView.contentOffset = contentOffset;
} }
- (void)viewDidAppear:(BOOL)animated { - (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated]; [super viewDidAppear:animated];
} }
- (void)viewWillDisappear:(BOOL)animated { - (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
} }
......
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