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;
こんにちは皆さん、私はメールコンポーザーのボタンのスタイルを変更しようとしています。上記のコードはボタンの外観を変更しますが、アクションが失われているようです。これを克服する方法はありますか?ありがとう。