iphone - How do I get the current location from the location manager? -
i want app exact location (longitude , latitude) of every second, possible ? have code far, every 3 second app current location doesnt update if move... - (void)locationmanager:(cllocationmanager *)manager didupdatetolocation:(cllocation *)newlocation fromlocation:(cllocation *)oldlocation{ nslog(@"lol"); [locationmanager stopupdatinglocation]; if (wtf == 2) { [[nsuserdefaults standarduserdefaults] setobject:newlocation forkey:@"old"]; nslog(@"wtf"); wtf =0; } oldlocation = [[nsuserdefaults standarduserdefaults] objectforkey:@"old"]; double rep = [oldlocation distancefromlocation:newlocation]; nsstring *label1 = [nsstring stringwithformat:@"%2.90f",oldlocation.coordinate.latitude]; nsstring *label2 = [nsstring stringwithformat:@"%2.90f",newlocation.coordinate.latitude]; if ([label1 isequal:label2]) { nslog(@...