Modifications to Xcode 9 + iOS11

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.