Challenge - 5 Problems
Project Structure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the role of Info.plist in an iOS project
What is the primary purpose of the Info.plist file in an iOS Swift project?
Attempts:
2 left
💡 Hint
Think about what the system needs to know about your app before running it.
✗ Incorrect
Info.plist is a property list file that holds key-value pairs describing app settings like permissions, app name, icon files, and launch screen info. It is not source code or UI layout.
❓ ui_behavior
intermediate2:00remaining
Locating the main storyboard in an iOS project
In a typical iOS Swift project using storyboards, where is the main storyboard file referenced so the app knows which UI to load first?
Attempts:
2 left
💡 Hint
This setting tells the system which storyboard to load at app launch.
✗ Incorrect
The Info.plist file contains the key "UIMainStoryboardFile" which points to the main storyboard file. This tells iOS which UI to load first.
❓ lifecycle
advanced2:30remaining
Order of files executed at app launch
Which sequence correctly describes the order of execution when an iOS Swift app launches?
Attempts:
2 left
💡 Hint
Think about what happens first: system call, app delegate, UI loading, then showing window.
✗ Incorrect
UIApplicationMain is the entry point that sets up the app. Then AppDelegate's launch method runs. After that, the main storyboard loads the UI, and finally the window is shown.
advanced
2:00remaining
Where to add new Swift files for view controllers
In a well-organized iOS Swift project, where should you place new Swift files that define view controllers?
Attempts:
2 left
💡 Hint
Think about keeping code files organized by their role.
✗ Incorrect
Source code files like view controllers should be in dedicated folders for clarity and maintenance. Assets and storyboards are for images and UI layouts, not code.
🔧 Debug
expert3:00remaining
Why does the app crash on launch after renaming the main storyboard file?
You renamed your main storyboard file from "Main.storyboard" to "Start.storyboard" but did not update any other files. What is the most likely cause of the app crashing on launch?
Attempts:
2 left
💡 Hint
Check where the system looks for the initial UI file.
✗ Incorrect
The Info.plist file still points to the old storyboard name "Main". Since the file was renamed to "Start", the app cannot find the storyboard and crashes.