mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
fix back button on editor in compact horiz layout on iPad
This commit is contained in:
parent
eca3042fcf
commit
4d20adec84
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue