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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -