Animate the change between detailviews on UISplitViewController
Currently This is how i change between detailviews from the right navigation bar
UIViewController <SubstitutableDetailViewController> *detailViewController = nil;
NSString * type = [self selectview:arb];
DetailViewController *newDetailViewController = [[DetailViewController alloc] initWithNibName:type bundle:nil];
detailViewController = newDetailViewController;
NSArray *viewControllers = [[NSArray alloc] initWithObjects:self.navigationController, detailViewController, n开发者_开发知识库il];
splitViewController.viewControllers = viewControllers;
[viewControllers release];
[detailViewController release];
There are lots of different nibs which it can change to
What i want to do is change between these with an effect sliding like the navigation controller would be good
You could place all 'linked' detail views in one navigation view controller of their own that would nicely deal with the transition between one another. Here is an example: http://www.cimgf.com/2010/05/24/fixing-the-uisplitviewcontroller-template/
I just wonder : is this code working ? you're just changing UIViewControllers, but not the views hierarchy...
精彩评论