这是由添加地图图钉/注释并过于频繁地释放它们引起的问题吗?
0 obj_msgSend
我的线程跟踪显示:1 MKMapRectIntersectsRect
这让我知道向地图添加图钉是问题所在。
我有一个表格视图,它指向一个包含地图的详细视图。似乎只有当我快速进入和退出我的详细视图(来自不同单元格的segues)时才会引发错误。我尝试更改发布注释的方式并将其从地图视图中删除,但无济于事。
崩溃日志:
Thread 0 Crashed:
0 libobjc.A.dylib 0x37ab5f78 objc_msgSend + 16
1 MyProject 0x000aa954 0xa2000 + 35156
2 UIKit 0x33181c84 -[UIViewController view] + 160
3 UIKit 0x3318e1e2 -[UIViewController contentScrollView] + 18
4 UIKit 0x3318e052 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 30
5 UIKit 0x3318df38 -[UINavigationController _layoutViewController:] + 28
6 UIKit 0x3318d704 -[UINavigationController _startTransition:fromViewController:toViewController:] + 312
7 UIKit 0x3318d4fc -[UINavigationController _startDeferredTransitionIfNeeded] + 244
8 UIKit 0x33181af8 -[UINavigationController pushViewController:transition:forceImmediate:] + 800
9 UIKit 0x331817ce -[UINavigationController pushViewController:animated:] + 30
10 UIKit 0x331fa8fc -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 880
11 UIKit 0x33274620 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 152
12 Foundation 0x3522e92c __NSFireDelayedPerform + 408
13 CoreFoundation 0x356e8a2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
14 CoreFoundation 0x356e8692 __CFRunLoopDoTimer + 358
15 CoreFoundation 0x356e7268 __CFRunLoopRun + 1200
16 CoreFoundation 0x3566a49e CFRunLoopRunSpecific + 294
17 CoreFoundation 0x3566a366 CFRunLoopRunInMode + 98
18 GraphicsServices 0x37306432 GSEventRunModal + 130
19 UIKit 0x33176cce UIApplicationMain + 1074
20 MyProject 0x000a3a46 0xa2000 + 6726
21 MyProject 0x000a39f0 0xa2000 + 6640