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