Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #51 from fousa/master

Always perform completion, even if there is nog left or right view controller
  • Loading branch information...
commit dffb7702cbc15d1c31eb9e87c99410a9c1c311d4 2 parents ae636bf + b778d2a
Tom Adriaenssen Inferis authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ViewDeck/IIViewDeckController.m
6 ViewDeck/IIViewDeckController.m
View
@@ -554,12 +554,12 @@ - (void)showCenterView:(BOOL)animated {
- (void)showCenterView:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed {
BOOL mustRunCompletion = completed != nil;
- if (!self.leftController.view.hidden) {
+ if (self.leftController && !self.leftController.view.hidden) {
[self closeLeftViewAnimated:animated completion:completed];
mustRunCompletion = NO;
}
-
- if (!self.rightController.view.hidden) {
+
+ if (self.rightController && !self.rightController.view.hidden) {
[self closeRightViewAnimated:animated completion:completed];
mustRunCompletion = NO;
}
Please sign in to comment.
Something went wrong with that request. Please try again.