Would you only ever go:
home -> A - B - C
home -> D - E - F - G
home -> H - I - J
if you where in F, and jumped, you'd go to A or H only? Never J or C?
If so, you can PopToRootController and then push A or H. Easy.
If they dont require much state, you COULD pop to root, then push A
and B and C, which would show C to the user.
mainNavController = new UINavigationController(A) {
TabBarItem = new
UITabBarItem("Overview", Resources.Overview, 0)
};
mainNavController.PushViewController(B, false);
tabControllers = new UINavigationController[] {
mainNavController,
//other stuff
};
then it shows B first...
On Fri, Aug 31, 2012 at 1:45 AM, Felix Collins <[email protected]> wrote:
> Hi, I have navigation requirements for an app that can be best expressed as
> follows.
>
>
> Home-->ViewA-->ViewB-->ViewC
> | \
> | -->ViewD-->ViewE-->ViewF-->ViewG
> \
> -->ViewH-->ViewI-->ViewJ
>
>
> From the Home view it is possible to navigate forward along any branch. In
> any of the views it is possible to hit a "back" button as implemented by a
> UINavigationController and progress back up the branch. From any of the
> views it is also possible to tap a button to jump to one of the other
> branches. The target branch will then be showing the View that was last
> visible (top of the navigation stack) when it was last being used.
>
> My current thoughts are that each branch has it's own UINavigationController
> and to switch between them I'll call call DismissViewControllerAnimated then
> PresentViewController on the Home UIViewController.
>
> Does this sound about right? Or is there a more sensible approach?
>
> Cheers,
> Felix
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Advice-required-on-implementing-branching-navigation-tp4656793.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch