ICViewPager
ICViewPager copied to clipboard
How to add a UIToolbar / UINavigationBar above the view pager?
I can't find a way to add a UIToolbar / UINavigationBar above the view pager? How can I adjust the vertical position of the view pager?
you don't add the navigation bar to the view pager. You add the view pager to the navigation bar. Create a NavigationController in the storyboard. Then set your viewpager controller as the controller for the view.
Okay, but more problems occurred. Can you look into this?
http://stackoverflow.com/questions/33338487/strange-spaces-at-the-top-bottom-of-icviewpager
When using with UITabbarController
and UINavigationController
, the ICViewPager
does not span across the full height that it should be.
How do I solve this case?
remove this on - (void)layoutSubviews
// if (IOS_VERSION_7) { // topLayoutGuide = 20.0; // if (self.navigationController && !self.navigationController.navigationBarHidden) { // topLayoutGuide += self.navigationController.navigationBar.frame.size.height; // } // }
Confirmed working. It should be a bug.
It still have the bug