Newbie IOS programmer looking for a way to get notified when the IPhone connects to a WIFI network.
i.e. Notification for the following transitions: 3G to WIFI WIFI to
Using the code u can get the SSID data of the WIFI you are currently connected to.
CFArrayRef myArray1 = CNCopySupportedInterfaces(); CFDictionaryRef myDict = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray1, 0)); NSLog(@"%@",myDict);