iOS without storyboard


Programmatically/Code or NIB based layouts are a much better fit for projects that use version control (see merge conflicts) and make it much easier to reuse views.

Step 1: Delete Main Interface from Deployment Info Settings

Step 2: Delete the Main.storyboard file

Step 3: Manually prepare and set the window property in AppDelegate.swift

Step 3a: Create a new UIWindow to the main UIScreen bounds

Step 3b: Make your window “key”

Step 3c: Set your window rootViewController to the ViewController of your choice

Code: link

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s