Xlpagertabstrip: Child UITableViewController's scrollview can not scroll to bottom

Created on 21 Oct 2016  路  7Comments  路  Source: xmartlabs/XLPagerTabStrip

Thanks for such a great library!

I had a problem that when I use library with UITableViewController embedded with UINavigationBar controller, first of all I had the same issue as #252
Then I adjust the frame of buttonBarView as follows

let originFrame = buttonBarView.frame
var offset: CGFloat = 0
let statusBarHeight = UIApplication.sharedApplication().statusBarFrame.height
offset += statusBarHeight
if let navBarHeight = self.navigationController?.navigationBar.frame.size.height {
    offset += navBarHeight
}
buttonBarView.frame = CGRectMake(0, offset, originFrame.width, originFrame.height)

The button bar is visible but the bottom part of UITableView can never be reached with scrolling.
I found the frame of containerView seems exceeds beyond the border that the scrollbar is going beyond the lower part of screen.
Hope someone can help me to solve this problem.

Thanks!

awaiting response

Most helpful comment

@santiagofm Hi, I am facing same issue container scroll view is not moving up. please suggest how can I make container view scroll vertically as well so that I can see my all subviews of child controller by scrolling please suggest.

All 7 comments

Hey @imadeit ! It's been some time but are you connecting the buttonBarView outlet ?
Regarding the scrolling issue, you didn't said if you are using the framework with storyboard or programmatically so can you provide a sample project to reproduce the issue ?

Closing due to lack of response

@santiagofm Hi, I am facing same issue container scroll view is not moving up. please suggest how can I make container view scroll vertically as well so that I can see my all subviews of child controller by scrolling please suggest.

I too have same issue, I am using through storyboard.Any help will be appreciated.

I have the same issue
The extra height which can not scroll up is exactly the same with buttonBarHeight
my solution is set tableview contentInset, anyway , can you please fix this bug ?
Thanks

For BarPagerTabStripViewController, we should connect barView outlet. barView type is UIView. ButtonBarPagerTabStripViewController requires us to connect buttonBarView outlet. buttonBarView type is ButtonBarView which extends from UICollectionView.

I found this in the description ,seems I didn't connect barView outlet ? what if I don't use storyboard ?
Thanks

Finally, fixed the issue , you just need add constraints to the containerView of the subclass of PagerTabStripViewController

Thanks for the great library BTW

Was this page helpful?
0 / 5 - 0 ratings