放在这里以后难得写:
CLLocationManager *_locationManager = [[CLLocationManager alloc] init];
[_locationManager startUpdatingLocation];CLLocationCoordinate2D currentlocation =[[_locationManager location] coordinate];
[_locationManager release];
NSLog(@"latitude=%f,longitude=%f",currentlocation.latitude,currentlocation.longitude);