Showing posts with label pushViewController. Show all posts
Showing posts with label pushViewController. Show all posts

Wednesday, January 19, 2011

presentModalViewController:animated: es dismissModalViewControllerAnimated:

Mindig a pushViewController:animated:-et es a popViewControllerAnimated:-et hasznaltam, pedig neha jol helyettuk a presentModalViewController:animated: es dismissModalViewControllerAnimated:
Peldaul amikor sajat AVPlayer vagy AVRecorder view-t akarok megmutatni. Igy legalabb nem kell rejtegetni kulon a navigationBar-t.

Wednesday, December 8, 2010

popViewController landscape modban fentrol lefele

Az volt a baj, hogy csak a UINavigatonController-ben adott vissza a shouldAutorotateToInterfaceOrientation YES-t. Igy ugyan a pushViewController-rel megnyitott ViewControllerek is forogtak, de ha azokorol visszaleptem (popViewControllerAnimated) landscape modban, akkor nem rendesen jobbra csuszott ki a ViewController, hanem fentrol lefele.

Az a megoldas, hogy nem eleg a UINavigationControlleren megadni a shouldAutorotateToInterfaceOrientation-t, hanem a tobbi ViewCotrolleren is meg kell ezt tenni. (Legalabbis azokon, amikre vissza fougunk lepni popViewControllerAnimated segitsegevel.)