title: No visible @interface for 'CLLocation' declares the selector 'setDesiredAccuracy:'
body: <p>I added the CoreLocation framework, and I keep rereading the code in my book to make sure I copied it down correctly but I am getting a persistent <code>No visible @interface for 'CLLocation' declares the selector 'setDesiredAccuracy:'</code> error. </p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;CoreLocation/CoreLocation.h&gt;
  
  @interface WhereamiViewController : UIViewController {
      CLLocation *locationManager;
  }
  
  @end
  </code></pre>
  
  <hr>
  
  <pre><code>#import "WhereamiViewController.h"
  
  @interface WhereamiViewController ()
  
  @end
  
  @implementation WhereamiViewController
  
  -(id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  
      if (self) {
          locationManager = [[CLLocation alloc] init
          [locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
      }
      return self;
  }
  @end
  </code></pre>