设置navigationBar上面的item

//创建UIBarButtonItem
UIBarButtonItem * rightButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:nil];

//设置到navigationBar上面
ViewController.navigationItem.rightBarButtonItem
= rightButton;

//self.navigationController.navigationItem.rightBarButtonItem = rightButton;

 

posted @ 2014-05-14 16:26  2014_4_30  阅读(182)  评论(0编辑  收藏  举报