Tag:ios11

  • Considerations for IOS 11 & iPhone x adaptation & xcode9 packaging

    Time:2021-4-18

    1. Fit uitableview if#available(iOS11.0, *) { self.contentInsetAdjustmentBehavior= .never self.estimatedRowHeight=0 self.estimatedSectionHeaderHeight=0 self.estimatedSectionFooterHeight=0 }else{ } 2. Adapt to uiscrollview if#available(iOS11.0, *) { scrollView?.contentInsetAdjustmentBehavior= .never }else{ } 3. The display of section header or footer in uitableview is abnormal In addition, it is found that the height of section header and section footer of some interface tableview is […]

  • Method of removing left and right gaps in IOS 11 UI navigationitem

    Time:2021-4-17

    preface Due to the change of Nav hierarchy in IOS 11, the previous method can not achieve the ideal mobile effect, so that the top button is completely left or right Revise ideas Before IOS 11, keep the original way to set, after IOS 11, modify the extra margin constraint to achieve the moving effect […]

  • Detailed explanation of navigation bar in IOS 11

    Time:2021-4-16

    preface In addition to the addition of two new features, largetitles and searchcontroller, the navigation bar of IOS 11 may be the reason for the addition of largetitles. Its structure has changed a little compared with that of IOS 10. Before IOS 11, the navigation bar button in the navigation bar was directly added to […]

  • About adapting to IOS 11 and iPhone x

    Time:2021-4-14

    preface As we all know, the official version of IOS 11 has finally arrived. Recently, it has adapted the app. In fact, it’s not very troublesome. Let’s take a look at some of the operations I’ve done. I won’t say much. Let’s have a look. 1. Changes of uitableview and uicollectionview Self sizing is used […]

  • Analysis and solution of wkwebview white screen in IOS

    Time:2021-4-8

    preface With the launch of wkwebview, many problems of uiwebview have been solved. Such as slow loading speed, memory leakage and other problems. Wkwebview was launched on IOS 8. Some time ago, the project was adapted to IOS 8. Finally, the uiwebview in the project can be replaced by wkwebview. Features of wkwebview: It has […]

  • The solution of IOS 11 adaptation and navigation bar shadow hiding return text

    Time:2021-3-29

    preface This article mainly introduces the solution of IOS 11 adaptation and navigation bar shadow hiding return text, which can be shared for your reference and learning. Let’s take a look at the detailed introduction. 1、 IOS 11 adaptation work This is a summary of WWDC session 204 “updating your app for IOS 11”, which […]

  • Solution to the bug of resuming IOS 11 Download

    Time:2021-3-22

    After the release of IOS 11, many apps with download function may lie down (PS: complaining about Apple dad for a few seconds). Because there is a new value in resumedata, which was originally used for breakpoint continuation, and the appearance of this new value will cause the download task to read the wrong data […]

  • The solution of duplicate content when IOS 11 section header moves disorderly and slides

    Time:2021-3-12

    After upgrading to IOS 11, there are more painful things. The code with problems that did not exist in previous versions has been compiled by Xcode 9, and tens of millions of grass and mud gallop by; Today, I came across a wonderful problem. I went directly to the topic: Problem Description: -(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section […]

  • New features and compatible adaptation of ios11

    Time:2021-2-2

    Since the release of ios11, many new features have provided convenience for the development work. I’d like to introduce the new features of ios11 and the work in compatibility and adaptation. 1. Change of uiview 1.1. More convenient RTL margin setting In the previous system, we used layoutmargins to get and set the distance between […]

  • The solution to the problem that ios11 wkwebview can’t load content

    Time:2021-2-1

    Problem Description: both ios9 and ios10 have no problem loading URLs with wkwebview, but ios11 is blank Maybe nsmutableurlrequest is used. IOS 11 doesn’t seem to support nsmutableurlrequest. Neither uiwebview nor wkwebview supports nsmutableurlrequest Solution reference if #available(iOS 11, *) { let request = NSURLRequest.init(url: URL.init(string: urlStr)!) self.wkWebView.load(request as URLRequest) }else{ let request = NSMutableURLRequest.init(url: […]

  • Summary of problems with ios11 wkwebview

    Time:2021-1-31

    Description of question 1: There is no problem for ios9 and ios10 to load URL with wkwebview, but ios11 is blankMaybe nsmutableurlrequest is used. IOS 11 doesn’t seem to support nsmutableurlrequest. Neither uiwebview nor wkwebview supports nsmutableurlrequest Solution reference if #available(iOS 11, *) { let request = NSURLRequest.init(url: URL.init(string: urlStr)!) self.wkWebView.load(request as URLRequest) }else{ let […]

  • Xcode9 appicon icon is not displayed on IOS 11

    Time:2021-1-23

    Example 1: Open the project directory: [project name] / pods / target support files / Pods – [project name] / Pods – [project name]- resources.sh This file replaces the last piece of code: Before revision: printf “%s\0” “${XCASSET_FILES[@]}” | xargs -0 xcrun actool –output-format human-readable-text –notices –warnings –platform “${PLATFORM_NAME}” –minimum-deployment-target “${!DEPLOYMENT_TARGET_SETTING_NAME}” ${TARGET_DEVICE_ARGS} –compress-pngs –compile “${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}” […]