title: how to avoid nulls while getting current location?
body: <p>I want to get users current location and i found that solution in stackoverflow: <a href="https://stackoverflow.com/questions/6516967/how-to-find-your-current-location-with-corelocation">How to find your current location with CoreLocation</a>.
  but in spite of that solution i get that message on Nslog:
   <code>2013-05-07 23:57:56.962 XXXXX[1951:c07] Latitude:(null),Longitude:(null)</code></p>
  
  <p>Here is what i have done:</p>
  
  <p>In header file:</p>
  
  <pre><code>#import &lt;CoreLocation/CoreLocation.h&gt;
  NSString *UsersCurrentLatitude;
  NSString *UsersCurrentLongitude;
  CLLocationManager *locationManager;
  </code></pre>
  
  <p>in implemention: </p>
  
  <pre><code> - (void)viewDidLoad
      {
          [super viewDidLoad];
          // Do any additional setup after loading the view.
  
          UsersCurrentLongitude:[NSString stringWithFormat:@"%f", locationManager.location.coordinate.longitude];
          UsersCurrentLatitude:[NSString stringWithFormat:@"%f", locationManager.location.coordinate.latitude];
  
              locationManager = [[CLLocationManager alloc] init];
              locationManager.distanceFilter = kCLDistanceFilterNone; // whenever we move
              locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; // 100 m
              [locationManager startUpdatingLocation];
  
          NSLog(@"Latitude:%@,Longitude:%@",UsersCurrentLatitude,UsersCurrentLongitude);
  
  }
  </code></pre>