Skip to content

Commit e510467

Browse files
author
Eric Bany
committedJan 22, 2013
When centerHiddenInteractivity changes with any side open, the centerTapper should be removed / added
1 parent ab62d8e commit e510467

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎ViewDeck/IIViewDeckController.m

+12
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,18 @@ - (void)transitionAppearanceFrom:(int)from to:(int)to animated:(BOOL)animated {
12311231

12321232
#pragma mark - controller state
12331233

1234+
-(void)setCenterhiddenInteractivity:(IIViewDeckCenterHiddenInteractivity)centerhiddenInteractivity {
1235+
_centerhiddenInteractivity = centerhiddenInteractivity;
1236+
1237+
if ([self isAnySideOpen]) {
1238+
if (IIViewDeckCenterHiddenIsInteractive(self.centerhiddenInteractivity)) {
1239+
[self centerViewVisible];
1240+
} else {
1241+
[self centerViewHidden];
1242+
}
1243+
}
1244+
}
1245+
12341246
- (BOOL)isSideClosed:(IIViewDeckSide)viewDeckSide {
12351247
if (![self controllerForSide:viewDeckSide])
12361248
return YES;

0 commit comments

Comments
 (0)
Please sign in to comment.