Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created July 14, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/84d823da1256e6cce5b2a8a4791a2abf to your computer and use it in GitHub Desktop.
Save chuck0523/84d823da1256e6cce5b2a8a4791a2abf to your computer and use it in GitHub Desktop.
import UIKit
class SecondViewController: UIViewController {
init() {
super.init(nibName: nil, bundle: nil)
self.view.backgroundColor = UIColor.greenColor()
self.tabBarItem = UITabBarItem(tabBarSystemItem: UITabBarSystemItem.History, tag: 2)
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
required override init(nibName nibNameOrNil: String!, bundle nibBundleOrNil: NSBundle!) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment