UIViewControllerHierarchyInconsistency

Je suis en train de construire mon appli et à un moment j'ai pousser un UIViewController et puis j'ai cette erreur. Je ne suis pas sûr de savoir exactement pourquoi.

'UIViewControllerHierarchyInconsistency', la raison: "Une vue ne peut être
associé avec au plus une-vue-contrôleur à la fois! View > est associé . Désactivez cette association avant de l'associer ce point de vue avec
.'

PageViewController *viewController;

viewController = [[PageViewController alloc] initWithManagedObjectContext:managedObjectContext];
dataSource = [[PagesDataSource alloc] initWithManagedObjectContext:managedObjectContext];

PVPage *selectedPage = [[dataSource pages] objectAtIndex:itemIndex];
[viewController setRepresentedPage:selectedPage];

PageFlipperAppDelegate *appDelegate = (PageFlipperAppDelegate *)[[UIApplication sharedApplication] delegate];
[(UINavigationController *)[[appDelegate window] rootViewController] setToolbarHidden:YES animated:YES];
[(UINavigationController *)[[appDelegate window] rootViewController] pushViewController:viewController animated:YES];

Dans mon pageViewController...................

- (id)initWithManagedObjectContext:(NSManagedObjectContext *)initManagedObjectContext
{
    if ((self = [super initWithNibName:@"PageView" bundle:nil]))
    {
        [self setManagedObjectContext:initManagedObjectContext];
        dataSource = [[PagesDataSource alloc] initWithManagedObjectContext:[self managedObjectContext]];
    }
    return self;
}

OriginalL'auteur BDGapps | 2012-08-09