Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.1' of github.com:wordpress-mobile/WordPress…
Browse files Browse the repository at this point in the history
…-Editor-iOS into develop

* 'release/1.0.1' of github.com:wordpress-mobile/WordPress-Editor-iOS:
  Updated podspec to 1.0.1
  Bugfix for empty posts on initial load

Conflicts:
	WordPress-iOS-Editor.podspec
  • Loading branch information
bummytime committed Nov 19, 2015
2 parents 222d3ea + e32e6a3 commit d25e21b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Classes/WPEditorViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ - (void)viewWillAppear:(BOOL)animated
[super viewWillAppear:animated];

if (!self.isFirstSetupComplete) {
self.isFirstSetupComplete = YES;

// When restoring state, the navigationController is nil when the view loads,
// so configure its appearance here instead.
self.navigationController.navigationBar.translucent = NO;
Expand All @@ -175,6 +173,11 @@ - (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if (self.isFirstSetupComplete) {
[self restoreEditSelection];
} else {
// Note: Very important this is set here otherwise the post will not initially
// load properly in the editor. Please be careful if you make a change here and
// test the editor within WPiOS!
self.isFirstSetupComplete = YES;
}
}

Expand Down

0 comments on commit d25e21b

Please sign in to comment.