OC:
if(@available(iOS11.0, *)){
[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
SWIFT:
if#available(iOS11.0, *) {
UIScrollView.appearance().contentInsetAdjustmentBehavior= .never
}
OC:
if(@available(iOS11.0, *)){
[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
SWIFT:
if#available(iOS11.0, *) {
UIScrollView.appearance().contentInsetAdjustmentBehavior= .never
}