【swift】スクリーン回転(Orientation)のアニメーションをしないようにする

override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {
UIView.setAnimationsEnabled(false)
}

override func didRotate(from fromInterfaceOrientation: UIInterfaceOrientation) {
UIView.setAnimationsEnabled(true)
}

返信を残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA