关于Xcode8的坑爹pod配置

看这篇博客前请将Mac系统升级到最新版本

笔者前几天发现Xcode8新建的工程中一直出现这样一个错误:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

More

iOS判断网络环境

我们在开发app时很多环境下都需要判断网络所处环境。

判断网络所处环境是很重要的一环,开发Web等网络应用程序的时候,需要确认网络环境,连接情况等信息。如果没有处理它们,是不会通过Apple的审查的。

Apple 的 例程 Reachability 中介绍了取得/检测网络状态的方法。

More