実際、ナビゲーションバーの右側にバーボタンを配置していますが、機能していません。しかし、左バーボタンのアイテムとして使用すると、正常に機能します。私はios5を使用しています。
左右のバーボタンの両方がある場合も機能しませんでした。次に、両方のフレームを設定すると、これらは機能します。しかし、右側にボタンが1つしかない場合、機能しません。
UIButton *but1 = [UIButton buttonWithType:UIButtonTypeCustom];//customising map button.
but1.frame = CGRectMake(270,0,50,40);
[but1 addTarget:self action:@selector(clicked) forControlEvents:UIControlEventTouchUpInside];//on cilcking an map button clicked method is called.
buttonRight = [[UIBarButtonItem alloc]initWithCustomView:but1];//setting map button on Navigation bar.
self.navigationItem.rightBarButtonItem = buttonRight;//setting button on the Right of navigation bar.
このエラーを追跡する方法は?