iOS 기본 (swift)
[iOS - swift] 앱 방향 전환 설정 (세로, portrait, 가로, landscape)
jake-kim
2021. 1. 10. 01:37
디폴트로 저장되어 있는 방향 전환
- info.plist에 명시된 내용

간단하게 설정 방법: AppDelegate에서 설정
- AppDelegate 우선순위가 가장 높기 때문에 info.plist의 값에 영향을 받지 않고 정해짐
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return [.portrait]
}
- 배열에 넣어주면 해당되는 옵션 추가
