//
// FirstSubViewController.swift
// TabBarViewControllerProject
//
// Created by 董黎伟 on 2018/7/11.
// Copyright © 2018年 董黎伟. All rights reserved.
//
import UIKit
class FirstSubViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
self.title = "Item #1"
// 设置当前视图控制器,在选项卡视图控制器中的标题
self.tabBarItem.image = UIImage(named:"timg")
// 设置当前视图控制器的选项卡图标
self.view.backgroundColor = UIColor.brown
// 设置当前视图控制器的背景色为棕色
}
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 prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}