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

Short video production and editing skills!

In this era of materialistic information flow and...

Five-minute technical talk | A brief analysis of Android 14 updates and upgrades

Part 01 New Features 1.1 Grammatical gender Just ...

How much does it cost to make a transportation mini program in Hegang?

The factors affecting the quotation of the Hegang...

Ximalaya FM Product Experience Analysis Report (Part 2)

As the largest audio platform in China, Himalaya ...

Why are marshmallows so much sweeter than regular candy? Here’s the secret…

During the Spring Festival, you can often see sta...

PR secrets: a comprehensive guide to advanced editing

PR Secret Techniques: A Comprehensive Guide to Ad...

Why are more and more mobile phones giving up memory card slots?

Maybe you have noticed that there are fewer and f...