Can't allocate CLLocationManager
问题 In my UIViewController's initWithNibNameOrNil , I call: locationManager = [CLLocationManager new]; to create the object, then later in viewDidAppear I call: [locationManager startUpdatingLocation]; [locationManager startUpdatingHeading]; But I never receive a location update; the location manager never starts updating the location. Yet if I replace that same line the initWithNibNameOrNil with: locationManager = [[myAppDelegate appDelegate] locationManager]; everything works great, except for