# 為你的 iOS 應用程式加入啟動畫面

> 學習如何為你的 iOS 應用程式加入啟動畫面。



[啟動畫面][Launch screens] 在你的 iOS 應用程式載入時，提供一個簡單的初始體驗。
它們為你的應用程式鋪陳開場，同時讓應用程式引擎有時間載入並初始化你的應用程式。

[Launch screens]: https://developer.apple.com/design/human-interface-guidelines/launching#Launch-screens

所有提交至 Apple App Store 的應用程式
[必須提供一個使用 Xcode storyboard 的啟動畫面][apple-requirement]。

## 自訂啟動畫面

預設的 Flutter 範本包含一個名為 `LaunchScreen.storyboard` 的 Xcode storyboard，
你可以用自己的資源 (Assets) 來自訂它。
預設情況下，該 storyboard 會顯示一張空白圖片，
但你可以更改這個設定。為此，
請在你的應用程式根目錄下輸入 `open ios/Runner.xcworkspace`
來開啟 Flutter 應用程式的 Xcode 專案。
然後在 Project Navigator 中選擇 `Runner/Assets.xcassets`，
並將你想要的圖片拖曳到 `LaunchImage` 圖片集 (image set)。

Apple 針對啟動畫面，在
[人機介面指引（Human Interface Guidelines）][Human Interface Guidelines]
中提供了詳細的說明。

[apple-requirement]: https://developer.apple.com/documentation/xcode/specifying-your-apps-launch-screen
[Human Interface Guidelines]: https://developer.apple.com/design/human-interface-guidelines/patterns/launching#launch-screens

