How to solve some problems encountered in Xcode9 and iOS 11

How to solve some problems encountered in Xcode9 and iOS 11

1. After upgrading to Xcode9, create a new project and report an error directly, as shown below:

Because the Top Layout Guide and Bottom Layout Guide introduced in iOS7 are deprecated in iOS 11 and replaced by the Safe Area Layout Guide. The solution is to remove the two items checked by default in the figure below.

2. RealReachability is used in the project to detect the network in real time, but after opening it with Xcode9, an error is reported directly, as shown in the figure:

Solution: Add the missing .m files to Compile Sources.

3. Pull up to refresh MJRefresh. Although the refresh has been called to end, it has no effect and the request data is still being loaded, as shown in the following figure:

Solution:

self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;

<<:  The basics you need to know about HTML5

>>:  How to build your first machine learning model on your iPhone

Recommend

How to reduce product user churn rate?

Reviewing this project, I gained a lot. The most ...

Baidu Promotion | Double 11 Market Traffic Trend & E-commerce Marketing Strategy

This article shares with you [Baidu Marketing Dou...

2019 Alipay product operation analysis!

1. Product Overview 1.1 Product Introduction Prod...

Unexpectedly, this nut extract can prevent fat accumulation

Compiled by: Gong Zixin Obesity is a significant ...

Where do new growth opportunities come from for information flow advertising?

Native advertising, brand-effect integration, inf...

The annual drama of China's space station! Two crews will meet in space!

◎ Dai Xiaopei, a reporter from Science and Techno...