0
ポップアップコントローラとしてビューコントローラを追加しようとしています。しかし、私はすべて、私はビューが底から滑り落ちるコードを使用し、私は望んでいません。以下は、私がView ControllerをSwift 3.0のポップアップコントローラとして表示できません
let storyboard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let popupVC = storyboard.instantiateViewController(withIdentifier: "WSFilterViewController") as! WSFilterViewController
popupVC.modalPresentationStyle = UIModalPresentationStyle .popover
popupVC.preferredContentSize = CGSize (width: 300, height:300)
let pVC = popupVC.popoverPresentationController
pVC?.permittedArrowDirections = UIPopoverArrowDirection.any
pVC?.delegate = self as? UIPopoverPresentationControllerDelegate
self.present(popupVC, animated: true, completion: nil)
を使用していたコード、私は任意の助けが理解されるであろう
を示す画像のようにそれをしたいです。事前に
おかげ
docsと書かれています:水平コンパクト環境では、このオプションはfullScreenと同じように動作します。 – Kubba
あなたはiPadまたはiPhoneデバイスにいますか? –
ソースビュー、sourceRect、およびデリゲートがありません –