0

I am working on iPad app in which click event of UINavigationController and UIToolBar is working fine in iOS 5 but, It is not working in iOS 6. My code:

self.window.rootViewController=navCon;    
[self.window makeKeyAndVisible];

and in other class where i am adding right bar button to UINavigationBar

self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"navBtn.png"] title:@"About" target:self action:@selector(aboutClicked)];

I am not getting click event of rightBarButton. Any help will be appreciated.

Siddh
  • 712
  • 4
  • 21
  • The method `initWithImage:title:target:action` is not a documented method of `UIBarButtonItem`... How is your code even compiling? – Maarten May 16 '13 at 14:08

1 Answers1

0

UIBarButtonItem doesn't have this method. See http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html

Alexander Merchi
  • 1,495
  • 13
  • 11