Hi Ray!
Thanks for your tutorial. The last several weeks im stucked at the DetailItemview.
I created an ipad app where you can view a fullscreen picture in landscape mode if you tap on the detailview. In the detailviewcontroller, I firs hide the masterview and then push the detailitemview. But the problem is that the detailitemview doesnt go into fullscreen mode in landscape but only cover the detailview area...
There were some alternative for MGsplitviewcontroller but i think that is a bit overkill as i already used a lots of 3rd party controllers in my project.
Is there a quicker way to push a detailitemview in fullscreen mode into the navigation stack?
- Code: Select all
- (void)carousel:(iCarousel *)_carousel didSelectItemAtIndex:(NSInteger)index
{
if (index == carousel.currentItemIndex)
{
//calls the detailview MethodsViewController nib.
MethodsViewController *methodsViewController=[[MethodsViewController alloc] initWithNibName:@"MethodsViewController" bundle:[NSBundle mainBundle]];
NSInteger selectedRecipe =index;
NSLog(@"Did select current item %i", selectedRecipe);
methodsViewController.selectedRecipe=selectedRecipe;
iPadSuperAppDelegate *del = (iPadSuperAppDelegate *)[[UIApplication sharedApplication]delegate];
UISplitViewController *split = del.splitViewController;
UIViewController *master=[split.viewControllers objectAtIndex:0];
UIViewController *detail=[split.viewControllers objectAtIndex:1];
master.view.hidden=!master.view.hidden;
detail.view.frame=split.view.bounds;
//left is objectAtIndex:0, right is objectAtIndex:1
[self.navigationController pushViewController:methodsViewController animated:YES];
[methodsViewController release];
}
else
{
NSLog(@"Did select item number %i", index);
}
}