问题
I would like to detect the presence of unsecured wifi network in my app. Is there any public iOS API available to achieve the same?
回答1:
There is no documented API to get that information. If you application needs to send and receive sensitive data across the network, you should generally assume that no connection is secured.
回答2:
I would suggest you use an SSL connection for your web service. Then the data that leaves will be encrypted.
回答3:
Have a look at the stumbler application and in particular the MSNetworkDetailsView class, it gives the level of detail that you need.
来源:https://stackoverflow.com/questions/8559252/how-to-detect-unsecured-wifi-network-from-ios-app