ScrollPager
ScrollPager copied to clipboard
setSelectedIndex, doesn't show entire 'selected' view
for example, I have 3 tabs. I set the selectedIndex to 1 (the middle one) on viewDidLoad and the scrollview only scrolls half way between 0 and 1...
This is being implemented using storyboards
I think issues has to do with storyboard / auto layouts. quick hack/fix for this is adding:
scrollPager.scrollView?.frame.size.width = UIScreen.mainScreen().bounds.width
in ``viewDidLoad` right before
scrollPager.delegate = self
scrollPager.addSegmentsWithTitlesAndViews([....
Can you reproduce this in the sample project?
Yes, in the sample project - same thing happens.
Had the same problem, the quick fix works though. Weird.
i have got same issue pls do update asap