When loading MKMapView , I have a peculiar crash. The nature of the occurrence is when I open the ABPeoplePickerNavigationController in one view, which in turn calls the delegate method UINavigationController
And after saving / without saving, I switch to another view - this works fine. The next view is its working fine. But when I enter the view using MKMapView , it will work.
No other problems arise. Only the view that MKMapView loads falls with the following log
*** -[UINavigationBar barStyle]: message sent to deallocated instance
I commented on the part of the code loading mapview, and then it works fine. Thus, it seems that my navigation bar is freed up somewhere when the map loads. But what I cannot understand is that no other view in the application has problems, only with a mapview error. I tried various test patterns and made sure that none of the other views had any problems.
The application does not crash in the simulator. It crashes only on the device. Why this problem occurs only in the view that loads mapview and has no other views.
I tried profiling to analyze my problem. Here is what I found, but it is not very useful.

ios iphone ios7 mkmapview uinavigationcontroller
Xavi valero
source share