iOS导航条的基本用法

   //导航条标题

创新互联公司专注为客户提供全方位的互联网综合服务,包含不限于成都网站制作、做网站、路桥网络推广、微信小程序定制开发、路桥网络营销、路桥企业策划、路桥品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联公司为所有大学生创业者提供路桥建站搭建服务,24小时服务热线:18982081108,官方网址:www.cdcxhl.com

    self.navigationItem.title = @"title";

   //导航条返回时文字的设置

    self.navigationController.navigationBar.topItem.title= @"";

    //去掉导航条返回时文字

[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(NSIntegerMin, NSIntegerMin) forBarMetrics:UIBarMetricsDefault];

   //导航条返回时箭头颜色的设置

    self.navigationController.navigationBar.tintColor = [UIColor redColor];

   //导航条的颜色

    self.navigationController.navigationBar.barTintColor =[UIColor blackColor];

   //隐藏返回按钮

    self.navigationItem.hidesBackButton = YES;

    

   //设置导航条背景颜色

    [[UINavigationBar appearance]setBarTintColor:[UIColor redColor]];

   //设置导航条背景图片

    [[UINavigationBar appearance]setBackgroundImage:[UIImage p_w_picpathNamed:@"ios"] forBarMetrics:UIBarMetricsDefault];

   //设置导航条标题的颜色和字体大小

    [self.navigationController.navigationBar setTitleTextAttributes:

     @{NSFontAttributeName:[UIFont systemFontOfSize:19],

        NSForegroundColorAttributeName:[UIColor redColor]}];

网站栏目:iOS导航条的基本用法
分享URL:https://www.cdcxhl.com/article48/jjdoep.html

成都网站建设公司_创新互联,为您提供标签优化全网营销推广App开发ChatGPT网站策划外贸网站建设

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都网站建设公司