我在iPad上的應用程序中的UINavigationController和UIToolBar的單擊事件工作正常iOS 5中,但工作,它不是在IOS 6的工作我的代碼:的UINavigationController和UIToolBar iOS中不工作6
self.window.rootViewController=navCon;
[self.window makeKeyAndVisible];
,並在我加入右欄按鈕其他類UINavigationBar的
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"navBtn.png"] title:@"About" target:self action:@selector(aboutClicked)];
我沒有得到rightBarButton的單擊事件。任何幫助將不勝感激。
「initWithImage:title:target:action」方法不是「UIBarButtonItem」的記錄方法...您的代碼如何編譯? – Maarten