Subbu
Subbu

Reputation: 2101

switch to different mode of network in iphone

I am making an app where the user taps on a button , then if he is already in the cellular network , then switches to "wifi" network .

If the user is in the "wi-fi" network , then switches to "cellular" network. But how to detect the type of network ? and how to detect different kinds of networks available ?

Upvotes: 0

Views: 94

Answers (2)

N C
N C

Reputation: 539

For detecting networks, you can refer this post

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

Upvotes: 1

shanegao
shanegao

Reputation: 3592

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

Upvotes: 1

Related Questions