Transición deslizante hacia arriba de UINavigation

I have a question about a view sliding up. The example would be iOS's contacts app. When you want to add a new contact, a view slides up automatically. How do you achieve this? Thank you!

preguntado el 24 de agosto de 12 a las 19:08

2 Respuestas

Check-out the Presenting a View Controller and Choosing a Transition Style section.

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html

Insinuación: UIModalTransitionStyleCoverVertical

Respondido 24 ago 12, 19:08

[self.navigationController presentModalViewController:SOMEVIEW animated:YES];

SOMEVIEW just needs to be a uiviewcontroller you created. you're current view needs a navigation controller also.

Respondido 24 ago 12, 19:08

That's incorrect. In order to maintain the same transition style, you do not need a UINavigationController. - max_

it's correct if you use the line of code I posted. You can just do [view presentModalViewcontroller: animated:], but the poster asked about 'like iOS contacts' app, which uses a navigation controller and presents a modal onto of it. At least that what it looks like the iOS contact app does. - Augie

Yes, he did, in regards to the transition style (animation), not the actual interface. - max_

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.