HI all,
I was using a sample code which uses the CLLocationManager class Users to determine the current location I'm getting the right spot, but I'm not getting an empty label ie nothing when I run the same app on the iPod Touch label .although Wi-Fi signal is displayed on the power when I run this app on the iPad For both iPods and iPads, it is good to have the suffix code ...
looks - (zero) locationManager: (CLLocationManager *) manager didUpdateToLocation: (CLLocation *) newLocation fromLocation: ( CLLocation *) oldLocation {int degree = newLocation.coordinate .latitude; Dual decimal = fibers (new position. Cordinate letetud - degree); Int Minute = Decimal * 60; Double seconds = decimal * 3600 - min * 60; NSString * lat = [NSString stringWithFormat: @ "% d °% d '% 1.4f \" ", degrees, minutes, seconds]; latLabel.text = lat [latLocationArray addObject: lat]; degree = newLocation.coordinate.longitude; Decimal = fabs (newLocation.coordinate.longitude - degrees); min = decimal * 60; seconds = decimal * 3600 - min * 60; nsstring * longt = [nsstring stringWithFormat: @ "% d °% d '% 1.4f \" ", Degrees, minutes, seconds]; LongLabel.text = Longt; [Long time location addobrack: longte]; itemprop = "text"> It is not like watching ipad WiFi stations:
}
It is possible that the iPod Touch can not be seen. Touch has a small WiFi range, are you testing in some areas with very few WiFi stations (rural areas)?
What is the iPad 3G model? If so, if WiFi is not working, then it will use GPS and cell towers.
Did you check any error that the location manager is sending back to you? You may have already disabled location data for the app, or there may be some other error.
Comments
Post a Comment