0
縦向きのデバイスの向きで横向きにビューを変換するにはどうすればいいですか?Swiftビューを横向きに変換するにはどうすればいいですか?可能です?
マイビューコントローラのコードです。
import UIKit
class SampleViewController: UIViewController {
var commingtextview:String = ""
@IBOutlet weak var textview: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
navigationController!.navigationBar.barTintColor = UIColorFromRGBs(0x000000)
navigationController!.navigationBar.tintColor = UIColor.whiteColor();
textview.text = self.commingtextview
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Important !
マイプロジェクトの肖像画は、私が風景にのみ、このビューの方向を変更したいの肖像画でなければなりません。また
[]風景右
何も起こらないコードはありません – SwiftDeveloper
いいえ私はそれを風景に左または右に変更していませんでした – SwiftDeveloper
このビューを開いたときに唯一の表示は90度回転します – SwiftDeveloper