I've hidden the navigation bar so I can have a custom UIToolBar up there, but when I set the action property for the toolbar item to a method that pops it, it won't work, and I think it may be because I hid the navigation bar.
Here's my code:
[toolBarItems addObject:[[UIBarButtonItem alloc] initWithTitle:@"Articles" style:UIBarButtonItemStyleBordered target:nil action:@selector(backButtonTapped)]];
...
- (void)backButtonTapped {
[self.navigationController popViewControllerAnimated:YES];
}
But nothing happens.