A: 

I have the same problem, any ideas?

Alejandra

Alejandra Gonzalez
A: 

Debug this by checking your view's frame in -viewWillAppear, -viewDidAppear, -viewWillDisappear, and -viewDidDisappear.

Also check the view's autoresizingMask, and the parent view's autoresizesSubviews property.

Darren
Hi, thanx for answering. Will check the view's frame when I have time tomorrow. I am not sure about autoresizingMask and autoresizesSubviews. I present the views using a window... what values should these two properties have? I think i've seen some options in Interface Builder too. Should they be checked or unchecked?
epron
A: 

I'm not sure I see the value of setting up a navigation controller here. You could just present the ABUnknownPersonViewController with [self presentModalViewController: unknownPersonView];. If you're doing it for the sake of picking up the visual navigation bar with the back button, then just add a nav bar and button to the unknown person view.

It seems like a mixed metaphor to be creating a UINavigationController but then not using its usual navigation methods (e.g., pushViewController:animated: and popViewControllerAnimated:) and instead using the modal methods inherited from UIViewController.

invalidname
Hi, thanx for answering. Its cleary stated in Apple's docs (in an *Important* note actually) that such kind of modal views, like ABUnknownPersonView Controller need to be invoked from within a navigation controller to work properly.
epron
Still, invalidname is right. The "right" way for this is to present a modal view controller. You just have to create an additional NavigationController with your UnknownPersonViewController as the root view controller, and present the navigation controller modally. An example is Apple's own adress book app where this happens if you tap on the button to add a person.
mrueg
A: 

It seems that adding this line:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

in my viewWillAppear: made the view not to move when the modal view controller is dismissed. However now the initial position was already slightly dislocated to the bottom but fixed it by moving all the outles in IB to the top so it looks ok.

epron