Skip to content

Instantly share code, notes, and snippets.

@frosty
Created September 5, 2016 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frosty/7898522999e750d367e577685b35df38 to your computer and use it in GitHub Desktop.
Save frosty/7898522999e750d367e577685b35df38 to your computer and use it in GitHub Desktop.
diff --git a/WordPress/Classes/ViewRelated/Blog/BlogDetailsViewController.m b/WordPress/Classes/ViewRelated/Blog/BlogDetailsViewController.m
index 2857058..06eab07 100644
--- a/WordPress/Classes/ViewRelated/Blog/BlogDetailsViewController.m
+++ b/WordPress/Classes/ViewRelated/Blog/BlogDetailsViewController.m
@@ -712,7 +712,12 @@ - (void)showStats
StatsViewController *statsView = [StatsViewController new];
statsView.blog = self.blog;
statsView.statsService = self.statsService;
- [self showDetailViewController:statsView sender:self];
+
+ if (self.splitViewController.isCollapsed) {
+ [self.navigationController pushViewController:statsView animated:YES];
+ } else {
+ [self showDetailViewController:statsView sender:self];
+ }
}
- (void)showThemes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment