0
화면 크기의 절반 인 mapview가 있으며 uialert 동작이 트리거되면보기가 화면의 다른 절반으로 이동하지만 사용자 위치는 중심점을 잃습니다 지도에.지도 뷰를 이동 한 후 사용자 위치를 유지하는 방법
값 완료 세트 mapview.center에let okAction = UIAlertAction(title: "Yes", style: UIAlertActionStyle.default) {
(result : UIAlertAction) -> Void in
UIView.animate(withDuration: 0.5, delay: 0.0, options: UIViewAnimationOptions.transitionCurlUp, animations: {
self.mapview.transform = CGAffineTransform(translationX: 0.0, y: -334.0)
}, completion: nil)