关闭

navigationItem

492人阅读 评论(0) 收藏 举报
-(void)configNavBar
{
    [self.navigationItem setTitle:@"IPO申込み管理"];
    UIImage * titleBg =[UIImage imageNamed:@"titlebar.png"];
//    self.navigationController.navigationBar.tintColor =[UIColor colorWithPatternImage:titleBg];
    self.navigationItem.titleView =nil;
      self.navigationController.navigationBar.backgroundColor = [UIColor colorWithPatternImage:titleBg];
    
    UIBarButtonItem * leftButton =[[UIBarButtonItem alloc]initWithTitle:@"ヘルブ" style:UIBarButtonItemStylePlain target:self action:@selector(getHelp)];
    self.navigationItem.leftBarButtonItem = leftButton;
    
    UIBarButtonItem * rightButton =[[UIBarButtonItem alloc]initWithTitle:@"更新" style:UIBarButtonItemStylePlain target:self action:@selector(updateData)];
    self.navigationItem.rightBarButtonItem = rightButton;
}

// self.navItem.rightBarButtonItems=[NSArrayarrayWithObjects:rightItem1,rightItem2, nil];  右边的可以个数组

 

设置导航返回的title为123

UIBarButtonItem * backBarButton =[[UIbarButtonItem alloc]init];

backBarItem setTitle =@"123";

self.navigationController.navigationItem.BackButtonItem= backBarItem;


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:107877次
    • 积分:1796
    • 等级:
    • 排名:千里之外
    • 原创:64篇
    • 转载:48篇
    • 译文:6篇
    • 评论:10条
    最新评论