views:

120

answers:

0

Hi,

In my application i present a UIImagePicker. When i dismiss this modal, my rootView goes from origin.x=5 to origin.x=0.

Does somebody knows why my view will automatically changes the origin when i dismiss or present my modalViewController?

I tried resetting the origin in viewDidAppear and viewWillAppear, but no luck. If i change the origin after i dismiss my picker it works as expected.

I dont know if this is a good solution, does anyone have a better idea? or mayby some insight on why dismiss or present modal changes my views origin?

Ton