Skip to content

Commit 4307383

Browse files
committed
If loading a view into a navigation controller stack, mark it that it needs adjustment.
1 parent be95a53 commit 4307383

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ViewDeck/IIViewDeckController.m

+3
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,10 @@ - (void)loadView
823823
_offset = 0;
824824
_viewFirstAppeared = NO;
825825
_viewAppeared = 0;
826+
826827
self.view = II_AUTORELEASE([[IIViewDeckView alloc] init]);
828+
if ([[self presentingViewController] isKindOfClass:[UINavigationController class]])
829+
[((IIViewDeckView*)self.view) setNeedsOffsetAdjustment];
827830
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
828831
self.view.autoresizesSubviews = YES;
829832
self.view.clipsToBounds = YES;

0 commit comments

Comments
 (0)