Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
24525e61
Commit
24525e61
authored
Jan 30, 2018
by
Pierre SAGASPE
Browse files
NetworkListView: fix the tableview offset when navigate in ios 11
parent
52e0eeb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/LocalNetworkConnectivity/VLCNetworkListViewController.m
View file @
24525e61
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* VLCLocalNetworkListViewController
* VLCLocalNetworkListViewController
* VLC for iOS
* VLC for iOS
*****************************************************************************
*****************************************************************************
* Copyright (c) 2013-201
7
VideoLAN. All rights reserved.
* Copyright (c) 2013-201
8
VideoLAN. All rights reserved.
* $Id$
* $Id$
*
*
* Authors: Felix Paul Kühne <fkuehne # videolan.org>
* Authors: Felix Paul Kühne <fkuehne # videolan.org>
...
@@ -81,8 +81,12 @@ NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier";
...
@@ -81,8 +81,12 @@ NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier";
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
{
{
[
super
viewWillAppear
:
animated
];
[
super
viewWillAppear
:
animated
];
CGPoint
contentOffset
=
CGPointMake
(
0
,
_tableView
.
tableHeaderView
.
bounds
.
size
.
height
);
if
(
@available
(
iOS
11
.
0
,
*
))
{
[
self
.
tableView
setContentOffset
:
contentOffset
animated
:
NO
];
[
self
.
tableView
setContentOffset
:
CGPointZero
animated
:
NO
];
}
else
{
CGPoint
contentOffset
=
CGPointMake
(
0
,
_tableView
.
tableHeaderView
.
bounds
.
size
.
height
);
[
self
.
tableView
setContentOffset
:
contentOffset
animated
:
NO
];
}
}
}
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment