0

我正在制作一个用户点击按钮的应用程序,然后如果他已经在蜂窝网络中,则切换到“wifi”网络。

如果用户在“wi-fi”网络中,则切换到“蜂窝”网络。但是如何检测网络的类型?以及如何检测可用的不同类型的网络?

4

2 回答 2

1

对于检测网络,您可以参考这篇文章

http://iostipsntricks.wordpress.com/tag/detect-network-connection-in-ios/

于 2013-04-25T07:23:29.083 回答
1

Reachability can help to detect type of network, but it seems no public API for switching the network in Apple's Documents.

于 2013-04-25T07:13:54.803 回答