title: Tracing the co ordinates of current location
body: <p>I want to trace the latitude and longitude coordinates of the current location..I use tis code to trace it...</p>
  
  <pre><code>-(void)ViewDidLoad{
  
        map = [[MKMapView alloc] initWithFrame:CGRectMake(0,46,320,370)];
              [map setDelegate:self];
              map.showsUserLocation=YES;
              [map setZoomEnabled:YES];
              [self.view addSubview:map];
              [map setMapType:MKMapTypeStandard];
             [self locationManager:locationManager didUpdateToLocation:newlocation fromLocation:oldlocation];}
  - (void)locationManager:(CLLocationManager *)managerdidUpdateToLocation:(CLLocation *)NewLocation
             fromLocation:(CLLocation *)OldLocation
  {
       locationManager = [[CLLocationManager alloc] init];
      locationManager.delegate = self;
      locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;
      [locationManager startUpdatingLocation];
      NSLog(@"%f %f",locationManager.location.coordinate.latitude,locationManager.location.coordinate.latitude);
  }
  </code></pre>
  
  <p>But my app crashes
    My log report:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Map locationManager:didUpdateToLocation:fromLocation:]: unrecognized selector sent to instance 0x5863890'
  </code></pre>