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

Commit

Permalink
Merge pull request #91 from benzamin/develop
Browse files Browse the repository at this point in the history
Fixing a bug where previous tabs overlaps with a normal navigation bar where I dont need tabs
  • Loading branch information
msaps authored Mar 20, 2017
2 parents 69ae147 + 45c5d6b commit 4e2f6cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/MSSTabbedPageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ - (void)viewWillAppear:(BOOL)animated {
tabBarView.dataSource = self;
tabBarView.delegate = self;
self.tabBarView = tabBarView;
self.tabBarView.hidden = NO;

BOOL isInitialController = (self.navigationController.viewControllers.firstObject == self);
[navigationBar tabbedPageViewController:self viewWillAppear:animated isInitial:isInitialController];
Expand All @@ -64,6 +65,7 @@ - (void)viewWillDisappear:(BOOL)animated {
}

// remove the current tab bar
self.tabBarView.hidden = YES;
self.tabBarView = nil;
}
}
Expand Down

0 comments on commit 4e2f6cd

Please sign in to comment.