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 rotate (portrait to landscape or landscape to portrait) my modal form sheet changed to ios default size. Also, i was not able to change the modal form sheet size again by programatically. Since, once the orientation changed ios making my (520X400) modal form sheet to its default size. Any idea how to fix this?.
Note:
When i ran on ios7 device i not am seeing any issue with the following code. If any thing wrong with my code then please indicate me. Since i do not know what's wrong with ios8
Here is the code that was i used to change the modal form sheet size:
self.navigationController.view.superview.frame = CGRectMake(200, 220, 400, 605);