Silver Challenge- using UIModalTransition with Pushview


Hello, I must be missing something. I have tried to set the modaltransitionstyle to my pushview of detail view controller (please see code below). This does not seem to affect the transition animation for the pushview at all. Is there something I am doing wrong in my code? My thoughts are that you cant use modaltransition styles with a pushview. If this is the case, am I supposed to abandon pushview and create another modal view?

[code]// ItemsViewController.m
// Homepwner
// Created by Sean Greene on 11/25/12.
// Copyright © 2012 Sean Greene. All rights reserved.

#import “ItemsViewController.h”
#import “BNRItemStore.h”
#import “BNRItem.h”

@implementation ItemsViewController

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

DetailViewController *detailViewController=[[DetailViewController alloc]initForNewItem:NO];
NSArray *items=[[BNRItemStore sharedStore]allitems];
BNRItem *selectedItem=[items objectAtIndex:[indexPath row]];
[detailViewController setItem:selectedItem];

// UINavigationController *tableViewNav=[[UINavigationController alloc]initWithRootViewController:detailViewController];
// [tableViewNav setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
// [tableViewNav setModalPresentationStyle:UIModalPresentationFormSheet];
// [self presentViewController:tableViewNav animated:YES completion:nil];

//Push it onto the top of the navigation controller`s stack
[detailViewController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];

[[self navigationController]pushViewController:detailViewController animated:YES];