Create application without storyboard in Swift language – iOS8

We can create a navigation based application in swift language without using storyboards like this

  1. Create an empty application
  2. Create ViewController To be made as root viewcontroller
  3. SwiftStudyViewController.swift

    import UIKit

    class SwiftStudyViewController: UIViewController {

    init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {

    super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)

    }

    override func viewDidLoad() {

    super.viewDidLoad()

    }

    }

  4. Changes in App Delegate Continue reading
Advertisements