I am using Reachability sample code from Apple site. I have added Reachability.h and Reachability.m files to my project, also I have added SystemConfiguration.framework. Added #import "Reachability.h" to my view controller .m file and declared reachability variable in my view controller .h file. Everything compiles without errors until I start using Reachability instances.
I get ReachableViaWiFiNetwork and ReachableViaCarrierDataNetwork undeclared error.
Why does this happen?
reachability = [Reachability reachabilityForInternetConnection];
NetworkStatus internetStatus = [reachability currentReachabilityStatus];
if ((internetStatus != ReachableViaWiFiNetwork) && (internetStatus != ReachableViaCarrierDataNetwork))
{
}