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

AI fraud is around the corner, how can we prevent it?

Any technology is a double-edged sword. What harm...

Meizu MX5 hands-on experience with full metal body

Meizu, which releases new phones at a rapid pace,...

From environment setup to memory analysis: A guide to Python code optimization

Code address: https://github.com/apatrascu/huntin...

How to use Baidu video to passively attract traffic!

1. Layout brand words Before using video to attra...

Zheng He's "favorite"! A ship that brings you good fortune

Step into the modern architecture of the China Ma...

ASUS PadFone mini full review: one device plays two roles

In terms of appearance, the ASUS PadFone mini cont...

Ding Tianyu - Technical Practice Guide, Make Money from Scratch in Stock Trading

Ding Tianyu - Technical Practice Guide, Make Mone...

How did Facebook get to 2 billion users? The answer is "science" and "empathy"

Yesterday afternoon, Zuckerberg said more than 65...

Taobao Operations: How did a trader review the sales volume from 0 to 5,000?

Many sellers are at a loss as to what to do when ...

Promotion | Introduction to Fanstong Products

The first in a series of popular science articles...

Even in the Internet age, mobile phone hardware is still the money maker

Xiaomi, which released its first mobile phone in ...

From the "glue dispensing door" to see Xiaomi's true "triathlon"

Let’s briefly review the so-called “glue dispensi...