我在iPhone应用程序中使用有色导航栏和有色全局UIToolbar。 在我的信息视图中,我有一个打开MFMailComposeViewController的按钮,该视图顶部的工具栏(“取消”和“发送”按钮)仍然是蓝色的。我打电话给这样的MFMailComposeViewController:更改MFMailComposeViewController的工具栏颜色
-(void)displayMailSheet
{
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:@"..."];
NSArray *toRecipients = [NSArray arrayWithObject:@"..."];
[picker setToRecipients:toRecipients];
[self presentModalViewController:picker animated:YES];
[picker release];
}
是否有可能改变该视图的工具栏的颜色?如果可能的话,我该怎么做?
全球范围内做到这一点,你有没有尝试设置picker.navigationBar.tintColor? – 2009-10-28 00:03:19
这工作正常!谢谢! :-) – iYassin 2009-10-28 09:23:21