I have a modal view with a button and on click I add a fullscreen view controller. In ios 4.3 sdk it was dismissing when I asked to (and with push/pop controller methods and with present/dismiss modalViews) In new ios 5 sdk it fails to exit, parentViewController of my viewController is nil and I'm stucked.
Any suggestions?

Adding code:

```
 myTypeController* vc = [[myTypeController alloc] initWithSomeData:myData];
 vc.hidesBottomBarWhenPushed = YES
//This way  
//[self.parentViewController presentModalViewController:vc animated:NO];
//Or that
 [self.parentViewController.navigationController pushViewController:vc animated:YES];
 [vc release];  

```

And usual ways to remove it

```
 [self.parentViewController dismissModalViewControllerAnimated:YES];

```

or 
 [self.navigationController popViewControllerAnimated:YES];