Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 iOS 5.1 应用程序,我需要检查互联网连接以及它是哪种类型的连接。
进行这种简单检查的最有效方法是什么?
苹果的可达性可能会有所帮助,它对我很有效:
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html