Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKAnnotationContainerView setAnnotation:]: unrecognized selector sent to instance 0x1c5fb920'
这种问题一种解决办法是
//设置为可以显示用户位置:
// _mapView.showsUserLocation = YES;把这句代码注掉就行了
因为你代码中的坐标位置可能没在你当前的位置 造成地图界面上没法显示代码中的坐标位置 造成崩溃
另一种解决办法是 将mapview用IB画出来 不用代码实现MapView