title: CLLocation doesn't work - unrecognized selector sent to instance
body: <p><br>
  I have a tabbar project in xcode and on the first view i need to find my GPS location and I need to save longitude and latitude on two variables on the appdelegate. Here some code:</p>
  
  <p>FirstViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;CoreLocation/CoreLocation.h&gt;
  
  @interface FirstViewController : UIViewController &lt;CLLocationManagerDelegate&gt;{ 
      CLLocationManager *locationManager;     
  }    
  @property (nonatomic, retain) CLLocationManager *locationManager;
  @end
  </code></pre>
  
  <p>FirstViewController.m</p>
  
  <pre><code>#import "FirstViewController.h"
  #import "CampeggiandoAppDelegate.h"
  #import &lt;CoreLocation/CoreLocation.h&gt;
  
  @interface FirstViewController ()
  
  @end
  
  @implementation FirstViewController
  @synthesize locationManager;
  
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
  
          self.tabBarItem.image = [UIImage imageNamed:@"ic_home2"];
          self.tabBarItem.title=@"Home";
      }
      return self;
  }
      - (void)viewDidLoad {
  
      [super viewDidLoad];
      self.locationManager = [[[CLLocationManager alloc] init] autorelease];
      self.locationManager.delegate = self;
  
      self.locationManager.distanceFilter=500.0f;
      self.locationManager.desiredAccuracy=kCLLocationAccuracyHundredMeters;
      [self.locationManager startUpdatingLocation];
  
  
  
  }
  
  - (void)locationManager:(CLLocationManager *)manager
      didUpdateToLocation:(CLLocation *)newLocation
             fromLocation:(CLLocation *)oldLocation {
  
      CampeggiandoAppDelegate *appDelegate=(CampeggiandoAppDelegate*)[[UIApplication sharedApplication]delegate];
  
  
      appDelegate.latitudineDel=[NSString stringWithFormat:@"%3.5f", newLocation.coordinate.latitude];
      appDelegate.longitudineDel=[NSString stringWithFormat:@"%3.5f", newLocation.coordinate.longitude];
  
  }
  </code></pre>
  
  <p>When I run the compiler and the fitst view comes up the application broke and appears this exception:</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception
    'NSInvalidArgumentException', reason: '-[AppDelegate
    setLatitudineDel:]: unrecognized selector sent to instance 0x84210b0'</p>
  </blockquote>
  
  <p>Any help? Thanks.</p>