fix back button on editor in compact horiz layout on iPad

This commit is contained in:
Sami Samhuri 2015-06-28 13:43:02 -07:00
parent eca3042fcf
commit 4d20adec84
2 changed files with 2 additions and 2 deletions

View file

@ -35,6 +35,8 @@
- (void)updateForNewTraitCollection:(UITraitCollection *)newCollection {
BOOL isCompact = newCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact;
self.postsViewController.clearsSelectionOnViewWillAppear = isCompact;
self.editorViewControllerForPad.navigationItem.leftBarButtonItem = self.displayModeButtonItem;
self.editorViewControllerForPad.navigationItem.leftItemsSupplementBackButton = YES;
}
- (UINavigationController *)masterNavigationController {

View file

@ -495,8 +495,6 @@ static const NSUInteger SectionPublished = 1;
EditorViewController *controller = (EditorViewController *)[[segue destinationViewController] topViewController];
controller.blogController = self.blogController;
[controller configureWithPost:post];
controller.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem;
controller.navigationItem.leftItemsSupplementBackButton = YES;
}
}