导航栏不透明

UINavigationController 导航控制器 IOS7适配 导航栏不透明

☆樱花仙子☆ 提交于 2020-02-28 16:47:41
导航控制器使用了导航堆栈。根视图控制器(Settings)在堆栈最底层,以此类推。可以理解为一本书,一页一页的。这样就控制了 试图控制器 self.title = @"Settings"; // 改变标题 //其实这是一个区域 self.navigationItem.titleView = 这是一个View 那就好办了,我们可以添加button imageView UISegmentedControl选项卡 //视图控制器 ViewController1* vc = [[ViewController1 alloc] init]; //导航控制器 UINavigationController* nc = [[UINavigationController alloc] initWithRootViewController:vc]; self.window.rootViewController = nc; ViewController2* vc2 = [[ViewController2 alloc] init]; //进入第二个页面 [self.navigationController pushViewController:vc2 animated:YES]; //返回上一个页面 [self.navigationController popViewControllerAnimated