maxep / MXSegmentedPager

Segmented pager view with Parallax header
MIT License
1.27k stars 252 forks source link

MXSegmentedPager with Navigation Controller #24

Closed WilliamHua closed 9 years ago

WilliamHua commented 9 years ago

Does MXSegmentedPager remove the navigation controller from displaying? I have a MXSegmentedPager embedded in a navigation controller (logging self.navgiationController outputs a NavigationController object) and it doesn't seem to show up (the nav bar).

maxep commented 9 years ago

Not sure to understand... the MXSegmentedPager is a UIView subclass, it does not have access to the navigation controller.

hardikamal commented 9 years ago

Hi @maxep

I have add button in navigation bar of parent viewcontroller which extends MXSegmentedPagerController...how can i access the add button from childviewcontroller...I tried instantiating the parentviewcontroller in child and accessing the add button...but it doesnt seems to work...

Thanks.

maxep commented 9 years ago

I' dont get what you trying to achieve... You can save a ref to your child in your parent controller.

hardikamal commented 9 years ago

I want to access the navigation bar from the tab view...is it possible?

maxep commented 9 years ago

Yes it's possible, you can forward the button action to the selected page.

hardikamal commented 9 years ago

can u tell me how to do it... i tried creating instance of parenttabviewcontroller in containerviewcontroller and then access the button but it did not work...

maxep commented 9 years ago

I'm sorry @hardikamal, but it's not the right place to do so.. You can open an issue with a 'help wanted' label and fill it up with sample code and a full explanation of what you attempt to do (it is still not clear to me). or you can use stackoverflow to reach more people.