uiviewcontroller* Modalcontroller = [[Uiviewcontroller alloc]init];
Modalcontroller.modaltransitionstyle = Uimodaltransitionstylecrossdissolve;
Modalcontroller.modalpresentationstyle = Uimodalpresentationformsheet;
Resizing size
Cgpoint framesize = Cgpointmake ([[UIScreen mainscreen] bounds].size.width*0.95f, [[UIScreen mainScreen] bounds]. size.height*0.95f);
CGRect screenrect = [[UIScreen mainscreen] bounds];
CGFloat screenwidth = screenRect.size.width;
CGFloat screenheight = screenRect.size.height;
if ([[[[Uidevice currentdevice]systemversion] floatvalue] >= 8.0)
{
Resizing for IOS 8
Modalcontroller. preferredcontentsize = Cgsizemake (framesize.x, framesize.y);
}
Else
{
resizing for <= IOS 7
ModalController.view.superview.frame = CGRectMake ((screenwidth-framesize.x)/2, (SCREENHEIGHT-FRAMESIZE.Y)/2, Framesize.x, FRAMESIZE.Y);
}
Uiviewcontroller *VC = [[[[[[UIApplication Sharedapplication] delegate] window] Rootviewcontroller];
[VC Presentviewcontroller:modalcontroller Animated:yes Completion:nil];
About the control of the modal window size under iOS 8 7 (resizing uimodalpresentationformsheet)