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.
我创建了一个显示RSSS 的tableview。我检查互联网连接,然后将 RSS 提要加载到 tableview 中,如果互联网不可用,它会显示网络错误警报并显示空 tableview。但是我想在互联网连接激活时加载 tableview。 有什么方法可以知道在 iPhone 应用程序断开连接后互联网连接何时变为活动状态。
是的,使用可达性类。
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html