Transición deslizante hacia arriba de UINavigation
Frecuentes
Visto 540 veces
1
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!
2 Respuestas
1
Check-out the Presenting a View Controller and Choosing a Transition Style section.
Insinuación: UIModalTransitionStyleCoverVertical
Respondido 24 ago 12, 19:08
-1
[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
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas ios objective-c iphone or haz tu propia pregunta.
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_