ios - How can i find programmatically iPhone device connected 3G network or Wifi in iOS7 -


Hello I have to find out if there is any suggestion from the Internet Internet 3G or 2G or WiFi Network

Thanks

Download Reachability Class for iOS from this link: -

1) Rechargeability H & M in your project Add , make sure that you flag it to ARC-fno-objc-arch

2) Now, check the connection type in your view controller

  Richability * Accessibility = [Reachability Possibility for Internet connection]; [Accessibility StartNotifier]; NetworkStats position = [reachability current resheability credits]; If (status == Notitable) {// no Internet} and (position == ReachableViaWiFi) {// wifi} and if (position == ReachableViaWWAN) {//}}    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -