蘋果爸爸iOS11廢棄了UIViewController的automaticallyAdjustsScrollViewInsets屬性導致
處理方案:
統(tǒng)一在appDelegate的didFinishLaunchingWithOptions的最開始增加:
Swift: if#available(iOS 11.0, *) {UIScrollView.appearance().contentInsetAdjustmentBehavior=.never}
OC: if (@available(iOS 11.0, *)) {UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;}