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

What is the difference between UCloud and other hybrid cloud companies?

A domestic IT media once held a small debate on t...

Apple CEO Tim Cook: There are things I will say until I die

[[267752]] 【Image source: Fortune Owner: Fortune】...

What is the future prospect of Douyin Store? Is it worth opening?

On Douyin, we can learn a lot of life knowledge, ...

Gaomi SEO Training: What are the various variations of words in search engines?

What are the various variations of words in searc...

This is how you can attract new users and promote activation of your APP!

In the era of mobile Internet, daily active users...

Take a photo! Tonight, Mars and the Moon will be in the same frame!

Recently, the brightness of Mars has been increas...

7 essential elements for virtual reality to succeed

According to foreign media reports, virtual reali...

Xiaohongshu’s popular note cover setting!

In recent years, Xiaohongshu has become increasin...

The little-known "Four Great Aviation Inventions" of Ancient China

As a Chinese, you will naturally know the four gr...