생계유지형 개발자/Mobile
[ios] Main.storyboard: warning: Unsupported Configuration: Medium Style before iOS 13.0
이 가을
2020. 8. 5. 18:50
Loading Bar로 작명된 Application Indicator에서 다음과 같은 경고가 났다.
Unsupported Configuration: Medium Style before iOS 13.0
경고 메세지를 없애는 방법은
1) 타겟 ios를 ios 13.0 이상으로 올리거나
2) 아래처럼 viewDidLoad() 메소드에 코드를 작성한다.
// To solve this, Set your project's iOS Deployment Target to iOS 13.0 (or later).
// If you cannot do that, choose one of the deprecated styles on the storyboad and
// set Large style programmatically:
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
//...
if #available(iOS 13.0, *) {
activityIndicator.style = .large
} else {
activityIndicator.style = .whiteLarge
}
}