1

试图让 UIPopoverController 向我展示 iPad 上的 uipickerviewcontroller

    let popOver = UIPopoverController()
    popOver.delegate = self
    popOver.setContentViewController(imagePicker, animated: true)

错误 :

*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController init] is not a valid initializer. You must call -[UIPopoverController initWithContentViewController:].'
4

1 回答 1

0

利用

let popOver = UIPopoverController(contentViewController:imagePicker)
于 2014-10-02T13:04:48.883 回答