2

UIBarButtonItemユニバーサル右/左をに追加するにはどうすればよいUINavigationControllerですか?UIViewController 私はすべてのありがとうのために同じ左右のナビゲーションバーボタンでナビゲーションベースのアプリを作ろうとしています

4

2 に答える 2

0
You can add the rightbarButtonItem in this way :-

UIBarButtonItem *btnName= [[[UIBarButtonItem alloc initWithTitle:@"btnTitle"   style:UIBarButtonItemStyleBordered target:self action:@selector(btnAction)]autorelease];         
self.navigationItem.rightBarButtonItem = btnName; 
于 2012-05-09T09:56:25.063 に答える