Skip to content

Commit

Permalink
Clip views to bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
myell0w committed Apr 25, 2012
1 parent 113d5a6 commit 94db0f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NGTabBarController/NGTabBarController.m
Expand Up @@ -248,6 +248,7 @@ - (void)setViewControllers:(NSArray *)viewControllers {

viewController.view.frame = childViewControllerFrame;
viewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
viewController.view.clipsToBounds = YES;
}

if (self.selectedIndex == NSNotFound && _viewControllers.count > 0) {
Expand Down

0 comments on commit 94db0f3

Please sign in to comment.