修改UINavigationBar类
var item:UINavigationItem =UINavigationItem();
网站建设公司,为您提供网站建设,网站制作,网页设计及定制网站建设服务,专注于企业网站建设,高端网页制作,对地磅秤等多个行业拥有丰富的网站建设经验的网站建设公司。专业网站设计,网站优化推广哪家好,专业成都网站营销优化,H5建站,响应式网站。
var viewTitle =UIView();
viewTitle.backgroundColor =UIColor.redColor();
viewTitle.frame =CGRectMake(0,0,20,30)
item.titleView = viewTitle;
var button:UIBarButtonItem =UIBarButtonItem(title:"Left_1", style:UIBarButtonItemStyle.Done, target:nil, action:"aaa");
var button2:UIBarButtonItem =UIBarButtonItem(title:"Left_2", style:UIBarButtonItemStyle.Done, target:nil, action:"aaa");
var button3:UIBarButtonItem =UIBarButtonItem(title:"Right_1", style:UIBarButtonItemStyle.Done, target:nil, action:"aaa");
var button4:UIBarButtonItem =UIBarButtonItem(title:"Right_2", style:UIBarButtonItemStyle.Done, target:nil, action:"aaa");
item.leftBarButtonItems = [button,button2]
item.rightBarButtonItems = [button3,button4]
nav.pushNavigationItem(item, animated:true);
网页标题:修改UINavigationBar类
网站链接:http://pwwzsj.com/article/pcpehg.html