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

Improving Android program security using hook technology (Part 1)

one, Introduction In the Android development worl...

Douyin monetization promotion, 7 ways to make money on Douyin!

2018 may be the year when everyone tried out TikT...

Is ASO really difficult? It’s time to do the drop-down association word

Is ASO really difficult? For example, someone rec...

During the New Year’s Day holiday, be safe and don’t take a break!

There are many New Year's Day celebrations an...

How to attract users through short video promotion?

On June 24, the "China Mobile Internet Devel...

This "activated carbon sponge" can directly "grab" carbon dioxide in the air

Produced by: Science Popularization China Author:...

Android Pie SDK is more compatible with Kotlin

[[240538]] One of the most common pain points whe...

There are so many museums, how are they classified?

When people are free or traveling, many of them t...

The 4 core elements of Internet activity operation and promotion!

Recently, a friend talked to me about issues rela...

Let’s take a look at the diverse functions of plateau wetlands!

Wetland is one of the three major ecosystems on E...

WeChat Mini Programs Major Upgrade: Open Cloud Development

After a rare month of silence, WeChat Mini Progra...

Why is your phone becoming less durable?

Would you use a mobile phone for seven years? Per...