0
私はすべての方向に私のアプリを表示したい
に回転していないので、私はGeneral
の下にあるすべてのorientaitonsを選択し、その後、Xcode Project Settings
逆さまの向きが縦
にinfo.plist
の下にあるすべてのorientaitonsを選択し、私はこれはAppDelegateで
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.all
}
とViewcontroller
func supportedInterfaceOrientations() -> Int{
return Int(UIInterfaceOrientationMask.all.rawValue)
}
でこれを追加他のすべてのorientati私はこれを働かせますか?
は、私が何をしたか厥、と私は私の質問であることを述べました。それは動作していません – Coder221
あなたが速い3を使用している場合は、私が書いた方法とまったく同じようにプロパティを実装する必要があります。 実装方法はまったく異なります – Rendel