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

Zhou Bangqin English Thinking Training Camp

Zhou Bangqin's English Thinking Training Camp...

Feelings are visible! 1905 Movie Box Popular Edition Unboxing

At the beginning of this year, the emergence of 1...

How to build your own traffic circulation system?

Before I start sharing how to build a traffic cir...

UI interface drop-down menu complete design guide

Editor's note: This article is written by sen...

Huawei beats South Korean companies in patent lawsuits in the US

Written in front: When it comes to treating users...

A complete guide to WeChat public account advertising promotion!

According to data released by the Enterprise Thin...

【Full course】Dou Shenda Chinese Classical Poetry Lecture Baidu Cloud Disk

【Full course】Dou Shenda Chinese Classical Poetry ...

Practical case: How to build high-quality user portraits?

If there is any core ability that a product manag...

If you have heel pain, don’t just bear with it!

Author: Tang Qin, Deputy Secretary-General of the...