1
我有一個ViewController與MapView的UserLocation設置和MKUserTrackingModeFollow設置。我有我的視圖控制器作爲mapview的委託。MKMapView與用戶位置崩潰時解僱視圖控制器
當我關閉ViewController時,mapview中的某些東西仍將ClientUpdate發送到我的viewcontroller,但它現在已被釋放,因此崩潰。
我試着在dealloc中調用[self.mapView setDelegate:nil],但仍然是相同的結果。
當我的控制器上調用onClientEvent時,錯誤是BadAcces。我正在使用io5和ARC。
任何想法?
你在哪裏設置委託爲零?其他帖子提到,它通常在dealloc中執行。 – Eitan
我也嘗試過,同樣的事情 – Mark