tags:

views:

45

answers:

2

I have a view based app and I would like to implement one of those sliding menus (I don't know if there's a specific name to call them), like Mail.

The idea is this: I have a board with several objects. When the user taps and hold on a object for half a second a popover appears showing the object properties. The properties are: object color, object text, object text color and object shadow color.

Every of these 4 properties, when tapped, will make a new window slide from right into the popover, bringing the adjustments. Tap done and the view is pushed to the right bringing the first view again... the process repeats for all views.

how do I add these "sliding menus" to a view based app inside a popover?

thanks in advance

A: 

its the default animation for UINavigationController. so if you implement a UINavigationController as your root view for your UIPopoverController, then push the view controllers you want, it should be the desired effect.

Jesse Naugher
sorry, there was a typo on my question... I have a view based app. How do I do that? any code you can point to? thanks.
Digital Robot
Just google for UINavigationController and figure it out.
David M.
you can still have a uinavigationcontroller as the root view of the popovercontroller.
Jesse Naugher
+1  A: 

Are you talking about iPhone or iPad? Your tag is only for iPhone.

On the iPad, there's a specific UI element called a Popover. When you click on the "Reply" icon in Mail, a menu appears with "Reply" and "Forward". This is a Popover. On iPhone, there's another kind of UI element, used for example when you want to copy text. It shows "Select", "Cut" and so on. That's called a Callout. Note that you can't use Popovers on the iPhone.

If you're talking about Mail on the iPhone, you have to find out how to use a UINavigationController, and then use the method -pushViewController:animated: to make a new page slide onto the screen.

nevan
thanks. I will search for it.
Digital Robot