NewGen
how to set splash screen image. 본문
xcode version : Version 10.2.1
swift.
1. Change Launch Image Source on Project general setup.
2. Select LaunchScreen.storyboard.
3. Add image to Assets.xcassets.
4. Add Image to LaunchScreen View controller
5. set splash image show time
--> add : Thread.sleep(forTimeInterval: 3.0) //3 secs splash delay
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Thread.sleep(forTimeInterval: 3.0) //splash delay
return true
}
6. If the image is not updated,
--> off xcode,
--> remove app from the target device.
--> del derived data : on terminal,
rm -vf /Library/Developer/Xcode/DerivedData/your project/*
7.start xcode , rebuild all and run again.
'IOS' 카테고리의 다른 글
Apple Store Binary Rejected.. (0) | 2020.01.09 |
---|---|
Play Video of UIWebView in LockScreen (0) | 2019.08.09 |
2019-03-15 XLSX File Open Document Based App (0) | 2019.03.15 |
2019-03-03 ios with google firebase basic 1 (0) | 2019.03.06 |
앱개발중 앱 인증 문제가 발생, 설정->일반->기기관리 메뉴안보일때 (2) | 2019.02.28 |