I do a application have a navigation controller, the application works fine but in one UIView I have a UITableView.
When push cell I need open new view. I tried this in didSelectRowAtIndexPath:
NextViewController *nextView = [[NextViewController alloc] initWithNibName:@"NextViewController" bundle:nil];
[self.navigationController pushViewController:nextView animated:YES];
[nextView release];
But the view does not open. I tried this too:
NextViewController *screen = [[NextViewController alloc]initWithNibName:@"nextView" bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen animated:YES];
[screen release];
Now the view it's open, but not correctly positioned, is under top navigation bar and tab bar and a part in view is hidden.
How can I open the view correctly?
EDIT:
I put o ther UIButton in other UIView to open other secondary UIView and doesnt work. I'm completely confused.