1,uiscrollview's automaticallyadjustsscrollviewinsets failed.
Automaticallyadjustsscrollviewinsets, when set to Yes (default Yes), if the view has a unique Uiscrollview or its subclass view, it will automatically set the corresponding padding. This allows scroll to occupy the entire view without obscuring the navigation bar.
IOS11 This attribute is invalid, the phenomenon in the app is that the Tableheaderview background map originally covered the navigation bar, now in the navigation bar below.
This is because iOS 11 adds a new property for Uiscrollview Contentinsetadjustmentbehavior This is an enumeration.
Modify the code as follows:
if 11.0, *)) { Self.centerTable.contentInsetAdjustmentBehavior = Uiscrollviewcontentinsetadjustmentnever; Else { = NO; }
2, Album Read permissions
Under the iOS11, the Apple to the album's permission key has made the adjustment, the original nsphotolibraryusagedescription, after iOS11, changed to Nsphotolibraryaddusagedescription.
<key>NSPhotoLibraryAddUsageDescription</key> //ios <string>app requires your consent, To access albums </string> <key>NSPhotoLibraryUsageDescription</key> <string >app need your consent to access the album </string> //<ios11
3, navigation bar
Modifications to Xcode 9 + iOS11