Creating the Split View Controller
Master iPad Split View Controllers in iOS Development
Key Technologies in This Tutorial
Split View Controller
iPad-specific interface component that displays master-detail relationships with side-by-side views for enhanced user experience.
Storyboard Connections
Visual interface builder connections that define relationships between view controllers and manage navigation flow.
Tab Bar Integration
Navigation interface element that allows users to switch between different sections of the app efficiently.
Split View Controllers only work in iPad apps and provide a sophisticated way to display master-detail relationships that take advantage of the larger screen real estate.
Alternative Setup Process
Navigate to Project Files
Close current files and navigate to Desktop > Class Files > yourname-iOS Dev Level 2 Class
Duplicate Template
Duplicate the 'Jive Factory Ready for Split View Controller' folder
Rename and Open
Rename duplicated folder to 'Jive Factory' and open the .xcworkspace file
Split View Controller Setup
Access Storyboard
Click Main_iPad.storyboard in Project navigator and set zoom to 25%
Add Split View Controller
Search for 'split' in Object library and drag Split View Controller above Tab Bar Controller
Clean Up Default Views
Delete the three default views (Navigation Controller, Root View Controller, and View Controller) that come with the Split View Controller
Split View Controllers come with default master and detail views, but you'll often need to customize or replace these components to match your app's specific requirements.
Master View Connection
Select Split View Controller
Click on Split View Controller and access Connections inspector in Utilities area
Connect Master View
Under Triggered Segues, drag from master view controller to Navigation Controller with Featured icon
Connect Detail View
Drag from detail view controller to Bands Detail View Controller for right-side display
When reconnecting view controllers to the Tab Bar Controller, the connection order determines the tab appearance order. Delete all connections first, then reconnect in the desired sequence.
Tab Bar Icon Configuration
Select Tab Bar Icon
Zoom to 100% and click on the gray rectangle tab bar icon at bottom of Split View Controller
Apply System Icon
In Attributes inspector, choose 'Featured' from System Item menu to apply the icon
Code Modifications
Comment Out ViewDidLoad
In BandsDetailViewController.swift, select entire ViewDidLoad method and use Cmd+/ to comment out
Test Initial Setup
Run the app to verify Split View Controller displays with Table View on left and Detail View on right
Remove Conflicting Segue
Delete the segue between Bands Table View Controller and Bands Detail View Controller in storyboard
The ViewDidLoad method is commented out temporarily to prevent runtime errors. This will be properly implemented in subsequent exercises when the detail view functionality is fully configured.
Final Organization Steps
Organize storyboard elements for better visual understanding
Use File > Save to preserve all changes made
Maintain workspace for continuation in next exercise
Key Takeaways





