我会在我的地图视图中插入一条折线!我是这样做的
CLLocationCoordinate2D coord[2];
coord[1].latitude = 45.42207;
coord[1].longitude = 9.123888;
coord[2].latitude = 45.422785;
coord[2].longitude = 9.12377;
MKPolyline *polyline = [[MKPolyline alloc] init];
polyline = [MKPolyline polylineWithCoordinates:coord count:2];
[self.mapView addAnnotation:polyline];
但是不工作并且有这个错误:EXC_BAD_ACCESS。怎么了?