https://stackoverflow.com/questions/45573829/ Weird-uitableview-behaviour-in-ios11-cells-scroll-up-with-navigation-push-anima
In your Tablview/controller base class settings
if 11.0, *)) { = uiscrollviewcontentinsetadjustmentnever; }
Do not use [UIScrollView appearance] the "method, do not take effect.
PS: Search This question, the domestic multiple articles are copied the same article, and is wrong.
The following is wrong.
- It is now found that all scrollview and their subclasses need to be set contentinsetadjustmentbehavior = Uiscrollviewcontentinsetadjustmentnever,
- The students who use the list in the project do not panic, do not be busy, because UIView and its subclasses follow the Uiappearance protocol, we can make a global configuration:
- Appdelegate Making Global Settings
- if (@available (IOS 11.0, *)) {
- [[Uiscrollview appearance] setcontentinsetadjustmentbehavior:uiscrollviewcontentinsetadjustmentnever];
- }
- This allows you to use UITableView, Uicollectionview, and Uiscrollview without having to set this property separately.
[iOS11] contentinsetadjustmentbehavior problem, push back, the interface will move up and down.