Programming/Swift(iOS)

[iOS 교육] window를 생성하는 방법

홍열 2023. 5. 4. 10:57
728x90

window를 생성하는 방법

  • UIWindow 클래스 사용
  • Window를 생성하는 전형적인 코드
window = UIWindow()
window?.backgroundColor = UIColor.white
window?.makeKeyAndVisible()