diff --git a/UIScrollViewSlidingPages/Source/TTScrollSlidingPagesController.m b/UIScrollViewSlidingPages/Source/TTScrollSlidingPagesController.m index e8e662d..48cdb40 100644 --- a/UIScrollViewSlidingPages/Source/TTScrollSlidingPagesController.m +++ b/UIScrollViewSlidingPages/Source/TTScrollSlidingPagesController.m @@ -139,8 +139,10 @@ - (void)viewDidLoad [self.view addSubview:topScrollViewWrapper]; //put the wrapper in this view. nextYPosition += self.titleScrollerHeight; + //line underneith the top scroller UIView *barView = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetHeight(topScrollViewWrapper.frame) - self.titleScrollerBottomEdgeHeight, CGRectGetWidth(topScrollViewWrapper.frame), self.titleScrollerBottomEdgeHeight)]; barView.backgroundColor = self.titleScrollerBottomEdgeColour; + barView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin; [topScrollViewWrapper addSubview:barView]; [topScrollViewWrapper bringSubviewToFront:barView]; }