Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 ViewDeck/IIViewDeckController.m
6 ViewDeck/IIViewDeckController.m
@@ -554,12 +554,12 @@ - (void)showCenterView:(BOOL)animated {
554 554
555 555 - (void)showCenterView:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed {
556 556 BOOL mustRunCompletion = completed != nil;
557   - if (!self.leftController.view.hidden) {
  557 + if (self.leftController && !self.leftController.view.hidden) {
558 558 [self closeLeftViewAnimated:animated completion:completed];
559 559 mustRunCompletion = NO;
560 560 }
561   -
562   - if (!self.rightController.view.hidden) {
  561 +
  562 + if (self.rightController && !self.rightController.view.hidden) {
563 563 [self closeRightViewAnimated:animated completion:completed];
564 564 mustRunCompletion = NO;
565 565 }

0 comments on commit dffb770

Please sign in to comment.
Something went wrong with that request. Please try again.