-
Notifications
You must be signed in to change notification settings - Fork 0
ViewController 1
Mohammad Azmal Hossain edited this page Jan 28, 2017
·
2 revisions
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) → Bool {
// Initialize the window window = UIWindow.init(frame: UIScreen.main.bounds)
// Set Background Color of window window?.backgroundColor = UIColor.whiteColor()
// Allocate memory for an instance of the 'MainViewController' class let mainViewController = MainViewController()
// Set the root view controller of the app's window window!.rootViewController = mainViewController
// Make the window visible window!.makeKeyAndVisible()
return true }
import UIKit
class MainViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view. }
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}