Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // omitted code
- - (void)updateInterfaceWithLocation:(CLLocation *)lastLocation {
- // we update the UILabel with the longitude and latitude values
- self.latitude.text = [NSString stringWithFormat:@"%f",lastLocation.coordinate.latitude];
- self.longitude.text = [NSString stringWithFormat:@"%f",lastLocation.coordinate.longitude];
- }
- // omitted code
- - (IBAction)buttonPress:(id)sender {
- CLLocation *lastLocation = [NFHLocationManager sharedLocationManager].lastLocation;
- // omitted 1 line of code - it's not important for our purposes here
- [self updateInterfaceWithLocation:lastLocation];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement