views:

53

answers:

1

I can show a different view with this code:

[self presentModalViewController:childView animated:nil];

This code should do the same thing, right?

[self.navigationController pushViewController:childView animated:YES];

But it doesn't do anything. Why is that?

+1  A: 

pushViewController only works in navigation controllers

presentModalViewController works for all view controllers

ssj