title: Trouble with getting location on iphone 6.1 simulator
body: <p>I am very new to objective C and  Xcode. I was trying to find out the location of my iphone simulator and went through a tutorial on youtube. Following is the code.</p>
  
  <pre><code>#import "MainClassViewController.h"
  #import &lt;CoreLocation/CoreLocation.h&gt;
  
  @interface MainClassViewController () &lt;CLLocationManagerDelegate&gt;
  
  @end
  
  @implementation MainClassViewController
  {
      CLLocationManager *manager;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  
      manager = [[CLLocationManager alloc]init];
  
  }
  
  - (IBAction)LocationButton:(id)sender 
  {
  
      manager.delegate = self;
      manager.desiredAccuracy = kCLLocationAccuracyBest;
  
      [manager startUpdatingLocation];
  
  }
  
  #pragma mark CLLocationManagerDelegate Methods
  
  - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
  {
      NSLog(@"didFailWithError: %@", error);
      UIAlertView *errorAlert = [[UIAlertView alloc]
                             initWithTitle:@"Error" message:@"Failed to Get Your Location" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
      [errorAlert show];
  }
  
  -(void) locationManager:(CLLocationManager *)manager didUpdateLocations:(CLLocation *)newLocation fromLocation: (CLLocation *) oldLocation {
  
      NSLog(@"Location: %@", newLocation);
      CLLocation *currentLocation = newLocation;
  
      if(currentLocation != nil){
          _Lattitude.text = [NSString stringWithFormat:@"%.8f", currentLocation.coordinate.latitude];
          _Longitude.text = [NSString stringWithFormat:@"%.8f", currentLocation.coordinate.longitude];
      }
  }
  </code></pre>
  
  <h2>    @end</h2>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface MainClassViewController : UIViewController
  
  - (IBAction)LocationButton:(id)sender;
  @property (weak, nonatomic) IBOutlet UILabel *Lattitude;
  @property (weak, nonatomic) IBOutlet UILabel *Longitude;
  
  
  @end
  </code></pre>
  
  <p>My questions are:
  1. I am not sure why labels are not getting updated with location.
  2. I want to learn more about debugging. Any suitable resources available. Please keep in mind I do not want learn all about debugging. Only what is required for the basics.</p>