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

Anxin No Source 3.0, a collection of three explosive gameplays, worth 8888 yuan

Course Description: The course comes from Anxin’s...

How to acquire more users at low cost?

When an operator wants to promote a product, he s...

2022 Chengdu Tea Tasting Private WeChat Good Places for Drinking Tea

Private WeChat appointment arrangements for Cheng...

Introduction to Sina Fuyi's advertising formats

Definition of wing Part 1 Definition of Wing Supp...

Content operation: How to build a complete UGC content ecosystem?

What steps are needed to build a complete UGC com...

Do you understand 50% of alloc and init?

Preface This is a note that records my analysis a...

How to use data to capture your target users?

A question that operations personnel are usually ...

Marketing automation rapid ranking SEO optimization training case!

SEO training case: When we do SEO optimization, s...