1
我使用UINavigationController为我的视图控制器。在的init()或viewDidLoad中()中,i设置:UINavigationBar系统类型按钮被禁用
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemEdit
target:self action:@selector(selector)];
虽然本或推视图,右栏按钮(左和如果有)被禁用。但如果我通过自定义按钮进行替换,那么它的工作正常。
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]
initWithImage:image title:nil
target:self action:@selector(selector)];
我觉得这是我的其他问题的根本原因在这里:
MFMailComposeViewController navigation bar buttons are disabled
有谁有想法? 在此先感谢!
是的,它发生在每个UIBarButtonItemSystemItem类型按钮中。 – youshunei 2012-01-29 12:08:16
self.editButtonItem是解决方案之一(使用自定义按钮可以解决),但在MFMailComposeViewController仍未使用的情况下。 – youshunei 2012-01-29 12:12:20