ICViewPager icon indicating copy to clipboard operation
ICViewPager copied to clipboard

How to add a UIToolbar / UINavigationBar above the view pager?

Open shivanraptor opened this issue 8 years ago • 5 comments

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?

shivanraptor avatar Oct 15 '15 07:10 shivanraptor

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.

desnyki avatar Oct 15 '15 16:10 desnyki

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.

Screenshot

How do I solve this case?

shivanraptor avatar Oct 26 '15 04:10 shivanraptor

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; // } // }

rafaelpereznajera avatar Nov 27 '15 14:11 rafaelpereznajera

Confirmed working. It should be a bug.

shivanraptor avatar Jan 05 '16 08:01 shivanraptor

It still have the bug

shesio avatar Jul 04 '18 11:07 shesio