2

I'm using a navigation controller for my app, because a lot of my views are hierarchical. However, I want to push a settings view when someone presses a button. However, I don't want to animate right to left, since I don't want to give the impression to the user that settings are a child of the view below it in the stack.

Is there any way I can animate the view change from bottom to top?

Or another way to switch views easily. Pushing and Popping views is so easy!

Thanks!

mac_55
  • 4,130
  • 7
  • 31
  • 40

1 Answers1

3

You could use a the modal view controller, which by default will transition from bottom to top:

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated

where modalViewController is the view controller you want to slide from bottom to top, and animated is YES.

marcc
  • 12,295
  • 7
  • 49
  • 59
  • thanks, but it's a different approach. Is there any way to make the animation appear from bottom to the top _with_ UINavigationController? – surlac Nov 04 '12 at 17:53