i used this code in reachability class that is in ios6
switch (status) {
case kNotReachable:
statusString = [NSString stringWithString: @"Not Reachable"];
break;
case kReachableViaWWAN:
statusString = [NSString stringWithString: @"Reachable via WWAN"];
break;
case kReachableViaWiFi:
statusString = [NSString stringWithString: @"Reachable via WiFi"];
break;
}
but the following error is occurred "Using 'stringWithString:' with a literal is redundant"
statusString = @"Not Reachable";
? – Grum