iOS 8: UINavigationController Schaltfläche "Zurück" ausblenden
Nachdem ich meine Anwendung unter iOS 8 (XCode 6.0.1, iPhone 6) ausgeführt habe, wird die Schaltfläche "Zurück" nicht ausgeblendet.
Mein Code:
- (void)removeCategoriesButton
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[_navigationController.topViewController.navigationItem setHidesBackButton:YES];
[_navigationController.topViewController.navigationItem setLeftBarButtonItem:nil];
} else {
UIViewController *controller = _app.window.rootViewController;
if ([controller isKindOfClass:[UINavigationController class]]) {
UINavigationController *nav = (UINavigationController *)controller;
[nav.topViewController.navigationItem setHidesBackButton:YES];
[nav.topViewController.navigationItem setLeftBarButtonItem:nil];
}
}
}
Aber der Zurück-Button wird nicht ausgeblendet (siehe Screenshot):
UPD:
Ich führe die Anwendung in einem anderen Simulator aus und sehe diesen "Bug" nur unter iOS 8.