Closed dippac closed 7 years ago
@interface ViewController - (void)func { self.navigationItem.title = @"a"; // 会对导航栏标题生效 self.tabBarItem.title = @"b"; // 会对标签页标题生效 self.title = @"c"; // 会同时对导航栏和标签页标题生效,相当于同时写了上面两句代码 } @end