Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Place tab indicator to the top #135

Open
prchowley opened this issue Nov 14, 2015 · 1 comment
Open

Place tab indicator to the top #135

prchowley opened this issue Nov 14, 2015 · 1 comment

Comments

@prchowley
Copy link

Is there anyway to place the tab indicator to the top of the label ? if yes then please write the solution.
Thanks.

@shahimclt
Copy link

for now, create your own copy of the library and change the following in ViewPagerController.m (line 100 approx) -

// Draw an indicator line if tab is selected
if (self.selected) {

    bezierPath = [UIBezierPath bezierPath];

    // Draw the indicator
    [bezierPath moveToPoint:CGPointMake(0.0, 0.0)];
    [bezierPath addLineToPoint:CGPointMake(CGRectGetWidth(rect), 0.0)];
    [bezierPath setLineWidth:5.0];
    [self.indicatorColor setStroke];
    [bezierPath stroke];
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants