编辑:我真的很抱歉。我编辑了我在帖子中犯的令人困惑的错误。
我有这些ivars声明WhereamiViewController.h:
CLLocationManager *locationManager;
IBOutlet MKMapView *worldView;
IBOutlet UITextField *locationTitleField;
作者写道,由于WhereamiViewController拥有locationManager和locationManager's委托是WhereamiViewController,locationManager委托必须nil在WhereamiViewController's dealloc方法中设置为,因为委托是assigned而不是weak。在.xib文件中worldView并locationTitleField设置为委托,但是当这两个委托也都不是时File's Owner,为什么不需要将这两个委托设置为?nilassignweak
PS:它使用ARC