Re: managing split view iPad
Re: managing split view iPad
- Subject: Re: managing split view iPad
- From: Michael Babin <email@hidden>
- Date: Tue, 20 Jul 2010 09:53:11 -0500
On Jul 20, 2010, at 9:24 AM, Andrea Mattiuz wrote:
> with -[UINavigationController setViewControllers:animated:] I can "reset"
> the navigation controller on the right side, passing to this method an array
> with the only ViewController of the new view I have to represent.
> Why I can do it only at the first tap and after that nothing changes (the
> detail view remain the same that appears after the first tap)?
> Can I also use -[UINavigationController pushViewController:animated:] to go
> deep in the hierarchy after I have initialized the navigation controller in
> that way? It doesn't work!
I'm picturing a set-up like the one used by the Settings app on the iPad, having a split view with a table view on the left and a navigation view on the right. Selecting an item in the table view on the left sets a new "root view" in the navigation view on the right (using setViewControllers:animated:). Selecting an item in the top view of the navigation view on the right pushes a new view onto the navigation view (through pushViewController:animated:). I don't have a sample at hand to consult, but I would expect pushing a view to work in such a situation.
Are you sure your controller code distinguishes between each situation correctly (tap on item in table view on the left vs. tap on item in top view in navigation view on the right) and handles each situation appropriately?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden