Urgent help needed. Modal View Controller inside navigation controller
Hi all,
I seem to have encountered possibly the strangest bug. When I use the presentModalViewController:animated method inside of a navigation controller with OS 3.0, when the controller is dismissed, it moves the navigation bar and any views I have inside the navigation controller.
I tried to compensate for this by calling a method that reset the frames of my objects, and that seemed to resolve it. However, as I was getting ready to submit my app, I came across an even stranger issue. When I present the UIImagePickerController with the photo library, or with the source being a camera on an iPhone 3G, everything works. However, the camera on my new 3GS moves the view differently than the iPhone 3G, or even the photo library source on the same phone! this, therefore makes it impossible to compensate for the view moving, which it probably shouldn't do at all.
Am I doing something wrong? It seems to me the view shouldn't move at all but it does. I would use my Apple code level assistance on this one, but I am leaving for a trip in a few days, without my computer.
This is because you are trying to dismiss modal view and at the same time to push another view controller to the navigation controller. Just push the next view controller within a delayed method after modal view dismiss method call.
Quote:
Originally Posted by brian515
Hi all,
I seem to have encountered possibly the strangest bug. When I use the presentModalViewController:animated method inside of a navigation controller with OS 3.0, when the controller is dismissed, it moves the navigation bar and any views I have inside the navigation controller.
I tried to compensate for this by calling a method that reset the frames of my objects, and that seemed to resolve it. However, as I was getting ready to submit my app, I came across an even stranger issue. When I present the UIImagePickerController with the photo library, or with the source being a camera on an iPhone 3G, everything works. However, the camera on my new 3GS moves the view differently than the iPhone 3G, or even the photo library source on the same phone! this, therefore makes it impossible to compensate for the view moving, which it probably shouldn't do at all.
Am I doing something wrong? It seems to me the view shouldn't move at all but it does. I would use my Apple code level assistance on this one, but I am leaving for a trip in a few days, without my computer.
I think I'm having the same problem.
I just present the modalvc and when it is dismissed, the navigationbar moves down.
Did you find the solution?
Hami
Quote:
Originally Posted by brian515
Hi all,
I seem to have encountered possibly the strangest bug. When I use the presentModalViewController:animated method inside of a navigation controller with OS 3.0, when the controller is dismissed, it moves the navigation bar and any views I have inside the navigation controller.
I tried to compensate for this by calling a method that reset the frames of my objects, and that seemed to resolve it. However, as I was getting ready to submit my app, I came across an even stranger issue. When I present the UIImagePickerController with the photo library, or with the source being a camera on an iPhone 3G, everything works. However, the camera on my new 3GS moves the view differently than the iPhone 3G, or even the photo library source on the same phone! this, therefore makes it impossible to compensate for the view moving, which it probably shouldn't do at all.
Am I doing something wrong? It seems to me the view shouldn't move at all but it does. I would use my Apple code level assistance on this one, but I am leaving for a trip in a few days, without my computer.
I think I'm having the same problem.
I just present the modalvc and when it is dismissed, the navigationbar moves down.
Did you find the solution?
Hami
I just compensated for the moving nav bar by resetting the frame when I dismiss the controller. I created my nav controller in the app delegate, so I call a method in the delegate that moves the bar to the original position.