• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: managing split view iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: managing split view iPad


  • Subject: Re: managing split view iPad
  • From: Michael Babin <email@hidden>
  • Date: Tue, 20 Jul 2010 06:55:04 -0500

On Jul 20, 2010, at 3:08 AM, Andrea Mattiuz wrote:

> thank you mmalc for the tip,
> but I don't have a navigation controller in the view xib file that I will
> charge, because I have an only navigation controller on the right side,
> declarated on the MainView xib file, an I work changing it.
> When I tap on the left side I modified the controller with this code, into a
> switch construct in the RootViewController:
>
> case 8:{
>
> ViewSincronizzaViewController *viewSincronizza =
> [[ViewSincronizzaViewController alloc] initWithNibName:@"ViewSincronizza"
> bundle:[NSBundle mainBundle]];
> self.viewSincronizzaViewController = viewSincronizza;
> viewSincronizza.navigationItem.title = [menu objectAtIndex:indexPath.row];
> [mainDelegate.detailViewController.navigationController pushViewController:
> viewSincronizzaViewController animated:YES];
> [viewSincronizza release];
> }
> break;
>
> In this way it obviously continue to add a new controller on the stack, and I
> don't know hot to reset this stack, in a manner that when I tap on the left
> side I can show the navigation controller on the detail view, where I can't go
> back on the precedent page.
> Do you know something about this?

Instead of -[UINavigationController pushViewController:animated:], use -[UINavigationController setViewControllers:animated:] when you want to "reset" the view controller stack.

_______________________________________________

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

References: 
 >Re: managing split view iPad (From: Andrea Mattiuz <email@hidden>)

  • Prev by Date: Re: Basic Q: Where is the best place to open a drawer?
  • Next by Date: The error from -[NSManagedObjectContext executeFetchRequest:error:]
  • Previous by thread: Re: managing split view iPad
  • Next by thread: Re: managing split view iPad
  • Index(es):
    • Date
    • Thread