UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithCustomView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cancel.png"]]];
button.target = picker.navigationBar.topItem.leftBarButtonItem ;
button.action = picker.navigationBar.topItem.leftBarButtonItem.action;
picker.navigationBar.topItem.leftBarButtonItem=button;
大家好,我正在尝试更改邮件编辑器按钮的样式。上面的代码确实改变了按钮的外观,但是动作似乎丢失了。有什么想法可以克服这个问题吗?谢谢。