In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
What are the problems encountered in the project after the update of iOS11 and the launch of iPhoneX? in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
When 1.UITableView slides, the slider on the right side jumps up and down and the MJRefresh pulls up and refreshes the endless loop.
This is because tableView defaults to use the three highly estimated attributes of estimatedRowHeight, estimatedSectionHeaderHeight and estimatedSectionFooterHeight of Self-Sizing,tableView in iOS11 from the default 0 to the KVO of UITableViewAutomaticDimension,MJRefresh to listen to the wrong contentoffset, resulting in continuous pull and load operations.
For the solution, you can set the default values of the above three attributes to 0 globally.
UITableView.appearance.estimatedRowHeight = 0x UITableView.appearance.acquiatedSectionFooterHeight = 0x UITableView.appearance.acquiatedSectionHeaderHeight = 0
two。 In iOS 11, the contentsize of tableview is moved down by 64 by default.
In iOS 11, the automaticallyAdjustsScrollViewInsets property of UIViewCOntroller is discarded and replaced by the contentInsetAdjustmentBehavior property of UIScrollVIew, and the default value can also be changed.
If (@ available (iOS 11.0, *)) {UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;} else {/ / Fallback on earlier versions self.automaticallyAdjustsScrollViewInsets = NO;}
However, it is written in this way that when calling the photo album, when the system album is launched, the downward movement of the system page contentSize is cancelled, which leads to a big problem, so the above default value can be removed and modified in a specific interface.
3. The project has huge black edges up and down when running on iPhone X.
Solution: because the LaunchImage in Assets is used in the project, you can modify the LaunchImage in Assets and add the Launch diagram of iPhoneX (1125 to 2436), but
Before iOS 11, the height of the navigation bar was 64, where the height of the status bar statusBar was 20 and the height of the bottom tabbar was 49.
After iOS 11, the height of the navigation bar of the iPhoneX is 88, where the height of the statusBar in the status bar becomes 44 and the tabbar at the bottom becomes 83.
A virtual Home zone has been added to the bottom of the iPhoneX. Due to the security zone, the height of the default tabBar has increased from 49 to 83, increasing by 34, so the custom bottom TabBar also needs to modify its adaptation scheme.
The answers to the questions encountered in the project after the update of iOS11 and the launch of iPhoneX are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.