ios中导航栏的设置

来源:互联网 发布:手机准星瞄准软件 编辑:程序博客网 时间:2024/06/08 12:54
[self.navigationItem.leftBarButtonItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont boldSystemFontOfSize:15],NSFontAttributeName, nil] forState:UIControlStateNormal];//设置左边按钮字体的大小self.navigationController.navigationBar.tintColor = [UIColor grayColor];    //设置按钮文字的的颜色[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundColorAttributeName:[UIColor redColor]}];//设置导航栏字体的大小和颜色self.hidesBottomBarWhenPushed=YES;//设置在push的时候隐藏tabbar[self.navigationController pushViewController:view1 animated:YES];self.hidesBottomBarWhenPushed=NO;//设置在返回时候显示按钮


原创粉丝点击