일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- button
- androidstudio
- UIButton
- PyQt
- ui
- UIKit
- 개발
- Chrats
- kotlin
- library
- Python
- Xcode
- charts
- Swift
- cocoapods
- 개발자
- graph
- 라이브러리
- alamofire
- modal
- Storyboard
- TableView
- UITableView
- Android
- PyQt5
- ios
- 어플리케이션
- Chart
- 그래프
- Apple
Archives
- Today
- Total
Jiwift
[iOS/Swift] 화면 세로 고정 코드, 아이폰 화면 고정 본문
반응형
[iOS/Swift] Code로 디바이스 화면 세로 고정
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait
}
AppDelegate에 위 코드를 넣어주세요. 그럼 적용 완료입니다.
반응형
'iOS Dev > iOS' 카테고리의 다른 글
[iOS/Swift] UserDefaults 초기화, 리셋, 데이터 삭제 (2) | 2023.01.11 |
---|---|
[iOS/Swift] UserDefaults 사용법 저장하고 불러오기 간단한 데이터 저장, String, Int, Bool, Array (0) | 2023.01.08 |
[iOS/Swift] UIColor 변환 사이트, RGB, Hex Color 색상 값을 Swift 코드로 변환 (0) | 2022.12.28 |
[iOS/Swift] 다크모드, 라이트모드 고정 overrideUserInterfaceStyle (0) | 2022.11.05 |
[iOS/Swift] Failed to set (keyPath) user defined inspected property 에러 (0) | 2022.11.05 |