mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-04-27 15:07:44 +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 {
|
- (void)updateForNewTraitCollection:(UITraitCollection *)newCollection {
|
||||||
BOOL isCompact = newCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact;
|
BOOL isCompact = newCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact;
|
||||||
self.postsViewController.clearsSelectionOnViewWillAppear = isCompact;
|
self.postsViewController.clearsSelectionOnViewWillAppear = isCompact;
|
||||||
|
self.editorViewControllerForPad.navigationItem.leftBarButtonItem = self.displayModeButtonItem;
|
||||||
|
self.editorViewControllerForPad.navigationItem.leftItemsSupplementBackButton = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UINavigationController *)masterNavigationController {
|
- (UINavigationController *)masterNavigationController {
|
||||||
|
|
|
||||||
|
|
@ -495,8 +495,6 @@ static const NSUInteger SectionPublished = 1;
|
||||||
EditorViewController *controller = (EditorViewController *)[[segue destinationViewController] topViewController];
|
EditorViewController *controller = (EditorViewController *)[[segue destinationViewController] topViewController];
|
||||||
controller.blogController = self.blogController;
|
controller.blogController = self.blogController;
|
||||||
[controller configureWithPost:post];
|
[controller configureWithPost:post];
|
||||||
controller.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem;
|
|
||||||
controller.navigationItem.leftItemsSupplementBackButton = YES;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue