在地图视图上使用模态的iOS9 Popover
我有一个关于如何在iOS9中制作popover的问题。我一直在努力让popover在地图视图上显示,使用的是在地图视图上使用模态的iOS9 Popover,ios,iphone,swift,uikit,ios9,Ios,Iphone,Swift,Uikit,Ios9,我有一个关于如何在iOS9中制作popover的问题。我一直在努力让popover在地图视图上显示,使用的是Rob的问答功能。然而,使用UIPopoverController被贬低了,现在xCode告诉我 现在可以使用UIViewController演示文稿实现弹出窗口。使用模态表示样式UIModalPresentationPopover和UIPopoverPresentationController 然而,我还没有弄清楚如何做到这一点,我希望其他人知道如何使用iOS9实现popover 这是到
Rob
的问答功能。然而,使用UIPopoverController
被贬低了,现在xCode告诉我
现在可以使用UIViewController演示文稿实现弹出窗口。使用模态表示样式UIModalPresentationPopover和UIPopoverPresentationController
然而,我还没有弄清楚如何做到这一点,我希望其他人知道如何使用iOS9实现popover
这是到目前为止我的代码
func mapView(mapView: MKMapView, didSelectAnnotationView view: MKAnnotationView) {
let annoation = view.annotation!
mapView.deselectAnnotation(annoation, animated: false)
let popupController = storyboard?.instantiateViewControllerWithIdentifier("mapPopupViewController") as! PopupAnnotationViewController
popupController.annotation = annoation
//WHAT TO DO NOW?
}