[UIKit] 가로/세로 방향 고정
2022. 7. 20. 01:20ㆍiOS/UIKit
728x90
반응형
General에서 Device Orientation을 체크해줬지만 고정이 안된다
그래서 코드로 나타냄
AppDelegate 에서 메소드 추가해주면 고정완료
landscape = 가로
//가로세로 고정!
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.landscape
}
728x90
반응형
'iOS > UIKit' 카테고리의 다른 글
[UIKit] 텍스트필드 글자수 제한 (0) | 2022.07.27 |
---|---|
[UIKit] 라이트모드/다크모드 지원 (0) | 2022.07.26 |
[UIKit] 바텀시트 (0) | 2022.07.18 |
[UIKit] 네비게이션 상단바부분까지 배경색 칠하기 (0) | 2022.07.18 |
[UIKit] 여러개의 세그 연결 (0) | 2022.07.18 |