Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# 런치스크린 Launch Screen #9

Closed
yoogail105 opened this issue Apr 11, 2022 · 1 comment
Closed

# 런치스크린 Launch Screen #9

yoogail105 opened this issue Apr 11, 2022 · 1 comment

Comments

@yoogail105
Copy link
Owner

yoogail105 commented Apr 11, 2022

# 런치스크린 Launch Screen

  • 런치스크린Launch Screen, 스플래시Splash, 시작 화면
  • 앱을 실행한 후 첫 화면이 나오기 전까지 보이는 화면.

🍯 런치스크린 표시 시간 제어하기

  • AppDelegate.swift
    • application(_ application: UIApplication, didFinishLaunchingWithOptions:)
    • 앱이 처음 실행될 때, 필요한 시스템적 처리를 모두 끝내고 메인화면을 표시하기 직전에 호출
      • 앱 시작 -> 시작화면 표시 -> 이 함수 호출 -> 앱의 첫 화면 표시
  • 런치스크린 화면 5초간 표시하기
   func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        sleep(5)
        return true
}
  • sleep(5): 5초간 앱을 잠들게 한다. 괄호안에 있는 숫자는 단위
@yoogail105
Copy link
Owner Author

yoogail105 commented Apr 11, 2022

런치스크린파일 변경하기

  • storyboard 파일로 런치스크린 만든 후
  • 프로젝트 타이틀 → TARGETS → General → App Icon and Launch Images → Launch Screen File 변경
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant