UITabBar上面顯示的每一個Tab都對應(yīng)著一個ViewController,我們可以通過設(shè)置viewController.tabBarItem屬性來改變tabbar上對應(yīng)的tab顯示內(nèi)容,否則系統(tǒng)將會根據(jù)viewController的title自動創(chuàng)建一個。
self.title = @"viewControllerTitle";
self.tabBarItem.title = @"tabBarItemTitle";
設(shè)置下邊的? 不會改變上邊,但是 上邊 會改變下邊。