Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. GPS get the longitude and elevation separately
  2. - (void)locationUpdate:(CLLocation *)location {
  3.     locLabel.text = [location description];
  4. }
  5.        
  6. - (void)locationUpdate:(CLLocation *)location {
  7.     locLabel.text = [location altitude];}
  8.        
  9. locLabel.text = [NSString stringWithFormat:@"%f", [location altitude]];