UITabBarController

一、在 AppDelegate.m 中引新建視圖控制器
#import “FirstViewController.h”
#import “SecondViewController.h”
#import “ThirdViewController.h”
#import “FourthViewController.h”
#import “FifthViewController.h”
這裏寫圖片描述

創建 tabBar 和對應視圖控制器
這裏寫圖片描述

二、對不同的視圖控制器設置不同的背景顏色,用來驗證 tabBar 的設置是否正確
這裏寫圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章