I have a View Controller that I present modally using the following code :
about.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:about animated:NO];
about.view.superview.frame = CGRectMake( about.view.superview.frame.origin.x+110,
about.view.superview.frame.origin.y-0,
320.0f,
460.0f
);
Now, If I present another view controller modally using the same code and similar size, everything works fine.
However, if I present a view controller modally that has the full screen size then, if I hit back (dismiss the last View Controller), the original View Controller will increase in size. The increases size is the regular size of UIModalPresentationFormSheet.
In other words: present ViewController A modally as mentioned above, then present another ViewController B from ViewController A modally. Now if B is full screen and we close it to go back to ViewController A, A will now be resized to the default frame size. I am not sure how to fix this issue. Can anyone kindly suggest a solution?