如何在外部点击时关闭模态视图表单控制器?
@IBAction func btnAction(sender: AnyObject) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewControllerWithIdentifier("popoverID") as! PopoverViewController
vc.modalPresentationStyle = .FormSheet
vc.popoverPresentationController?.sourceView = self.view
self.presentViewController(vc, animated: true, completion: nil)
}