• Ios15 adaptation summary


    catalogue 1. Background color of tabbar and navicationbar Cause: the method of setting color is invalid in ios15 Solution — reset related properties 2. Tableview new attribute – sectionheadertoppadding use 1. Background color of tabbar and navicationbar Problem: when upgrading from ios14 to ios15, the background color of the navigation bar will fail Cause: the […]

  • Detailed ios11, iPhone x, xcode9 adaptation Guide


    After updating ios11, it is found that some places need to be adapted. After sorting, it is divided into the following three categories according to priority: Changes caused by simply upgrading ios11; Changes caused by xcode9 packaging; IPhone x adaptation 1、 Changes caused by simply upgrading ios11 After upgrading, it is found that the interface […]

  • Adaptation of uitableview under IOS 11


    In September, Apple released IOS 11 and iPhone X. the hardware of this operating system has created a lot of pain for developers. Let’s first look at IOS 11, where these eggs need to be adapted: 1. The UI of uiscrollview and its subclasses before IOS 11 is completely normal, but a wonderful interface will […]

  • Some pits for ios11 and iphonex


    This article is reproduced in:http://www.cocoachina.com/ios/20170921/20623.html navigation bar Change in navigation bar height Before ios11, the default height of the navigation bar is 64pt (here the height refers to the statusbar + NavigationBar). After ios11, if preferslargetitles = yes is set, it is 96pt. By default, it is still 64pt. However, due to the appearance of […]

  • Detailed explanation of REM adaptation scheme and viewport adaptation in HTML5


    H5 terminal REM adaptation scheme and viewport adaptation rem Rem is a new relative unit (root em, root EM) in CSS3Only according to the font size setting of the current HTML page. If the font size of the root directory is 18px, 1rem = 18px Media query settings @media screen and (min-width: 320px) { html […]

  • Implementation method of ios13 adaptation


    1. Private KVC [self setValue:baseTabBar forKey:@”tabBar”]; // normal [_textField setValue:[UIColor redColor] forKeyPath:@”_placeholderLabel.textColor”];/// collapse [_textField setValue:[UIFont systemFontOfSize:14] forKeyPath:@”_placeholderLabel.font”];/// collapse _ Textfield. Attributedplaceholder = [[nsattributedstring alloc] initwithstring: @ “name” attributes: @ {nsfontattributename: [UIFont systemfontofsize: 14], nsforegroundcolorattributename: [uicolor redcolor]}]/// New implementation Compiling on xcode10 will not be a problem, but compiling on xcode11 will crash. And – (void) […]

  • IOS 13 adaptation summary (recommended)


    With the release of iPhone 11, IOS 13 adaptation has also been put on the agenda. Next, there are possible problems in developing and upgrading IOS 13 phones Xcode: 11.0 iOS : 13.0 Uiviewcontroller modal pop-up interface viewController.present(presentVC, animated: true, completion: nil) When calling the modal pop-up view, you will find that the pop-up interface […]

  • Ios13 native end adaptation strategy (recommended)


    With the release of IOS 13, it is necessary for the company’s projects to adapt. Cash exchange summarizes the various pits of IOS 13 1. KVC accesses private properties The IOS 13 system upgrade has the widest impact on KVC access and modification of private properties, which directly prohibits developers from obtaining or directly setting […]

  • Summary of ios13 adaptation and xcode11.0 stepping pit


    Problems with presentviewcontroller in ios13 After updating Xcode 11.0 beta, run code discovery in IOS 13presentViewControllerIt is different from the previous pop-up style. This is mainly because we were right beforeUIViewControllerOne of the attributes ismodalPresentationStyle(this property is the style that the controller will use in modal view) the required type is not set. In ios13modalPresentationStyleThe […]

  • How CSS adapts to iPhone full screen


    1、 Media query mode /*IPhone x adapter*/ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) { .fixed-bottom{ bottom: 37px; } } /*IPhone XS Max adapter*/ @media only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio:3) { .fixed-bottom{ bottom: 37px; } } /*IPhone XR Max adapter*/ @media only screen and (device-width: […]

  • Mobile front end adaptation scheme (summary)


    After searching on the Internet, many interviewees will be asked about the method of mobile terminal adaptation. Recently, I read some articles. Here’s a summary. First of all, let’s talk about some technical solutions for mobile terminal adaptation (1) Through the way of media query, that is CSS3 Meida queries (2) Flex flexible layout represented […]

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


    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 […]