Actually what i am doing is on iPad i am presenting the modal form sheet with my own size (520 X 400). It was working fine at first time. Then when i do rotat
finally i figure out a way how to resolve the above one.
Here my solution:
on ios8 just setting the following property to your modal view will resolve the issue
in view did load:
CGRect rect = self.navigationController.view.superview.bounds;
rect.size.width = 605;
rect.size.height = 350;
self.navigationController.view.superview.bounds = rect;
self.navigationController.preferredContentSize = CGSizeMake(605, 350);
before presenting your modal view
your_modal_view.preferredContentSize = CGSizeMake(540.0f, 620.0f) //what ever the size you want
I hope this helps