UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
btn.frame=CGRectMake(0, 0, 80, 30);
[btn setBackgroundImage:[UIImage imageNamed:@"an44.png"] forState:UIControlStateNormal];
[btn setTitle:@"发作品" forState:UIControlStateNormal];
UIBarButtonItem *item=[[UIBarButtonItem alloc] initWithCustomView:btn];
// self.navigationItem.rightBarButtonItem=item;
// Do any additional setup after loading the view.
[self.navigationItem setRightBarButtonItem:item];
//修改title字体颜色
UIColor * color = [UIColor whiteColor];
//设置对应属性的值
NSDictionary * dict = [NSDictionary dictionaryWithObject:color forKey:UITextAttributeTextColor];
self.navigationController.navigationBar.titleTextAttributes = dict;
详情:http://hua397.iteye.com/blog/1181299