Closed genewoo closed 11 years ago
I am using both open and push_view_controller. neither works for me. I found some work around by using SugarCube's self.navigationController << @select_screen.
I think this might be an issue with ProMotion
Hi @genewoo, thanks for reporting this. I built a little app to test this and it worked fine.
Can you post some of your code?
Oh, I found the issue, the issue is :
Only the app delegator could declare (nav_bar: true). for the other screen, should not add that.
A suggestion for PM code:
# Wrap in a PM::NavigationController?
screen.add_nav_bar if args[:nav_bar] && screen.respond_to?(:add_nav_bar)
should we detected current nag_bar is available before add it?
Got it. One problem is that you can create a nav_bar before actually opening the screen. Example:
@my_screen = MyScreen.new(nav_bar: true)
# never actually open it
Maybe we need to set an instance var to true and not actually instantiate the nav_bar until it's pushed onto a view.
I create 3 level navigation views.
Home -> Add -> Selection View.
I could open Home and Add Screen without problem. But I can't see the Selection View at all. I tried alternative code from Add to Selection View, the view was shown without problem. So something happen with 2nd push_view_controller.
Any one tried push view more than 2 levels?