ナビゲーションバーのボタンとして画像を使用しようとしています。ボタンは問題なく表示されますが、タッチイベントには応答しません。ボタンの設定方法は次のとおりです。
UIImageView *iv = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow_up_24.png"]];
iv.userInteractionEnabled=YES;
UIBarButtonItem * logoutButton = [[UIBarButtonItem alloc] initWithCustomView:iv ];
logoutButton.target=self;
logoutButton.action=@selector(logoutButtonPressed);
私は何が欠けていますか?