iPad アプリには、modalView を開くボタンを備えた UIViewController があります。
@IBAction func showPostCommentViewController(sender: AnyObject){
let modalView = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("PostCommentViewController") as! PostCommentViewController
modalView.modalTransitionStyle = UIModalTransitionStyle.CoverVertical
modalView.modalPresentationStyle = UIModalPresentationStyle.FormSheet
modalView.delegate=self
self.presentViewController(modalView, animated: true, completion: nil)
}
modalViewをdismissViewControllerAnimatedで閉じると、View Controllerを「リフレッシュ」したいと思います(新しいコンテンツを追加したため)。ただし、モーダル ビューは「フォームシート」スタイルであるため、viewDidAppear または viewWillAppear は呼び出されません。
setNeedsDisplay を使用しようとしましたが、機能しません。
どうすればいいのかわからない。