title: why I can't set mapView.showsUserLocation to YES in iOS?
body: <p>I have found here a similar old post:
  <a href="https://stackoverflow.com/questions/3552424/showsuserlocation-does-not-display-blue-dot-in-iphone-4-0">showsUserLocation does not display blue dot in iPhone 4.0</a></p>
  
  <p>I have this code:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
      locationManager=[[CLLocationManager alloc]init];
  
      [locationManager setDelegate:self];
      [locationManager setDistanceFilter:kCLDistanceFilterNone];
      [locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
      //[locationManager startUpdatingLocation];
      mapView.showsUserLocation=YES;    
      NSLog(@"bool: %d", [mapView showsUserLocation]);
  
      // Override point for customization after application launch.
      self.viewController = [[[WhereamiViewController alloc] initWithNibName:@"WhereamiViewController" bundle:nil] autorelease];
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
  
      return YES;
  }
  </code></pre>
  
  <p>Why does <code>NSLog(@"bool: %d", [mapView showsUserLocation])</code> show <code>0</code>, not <code>1</code>? Why can't I set it to <code>YES</code>? </p>