i using modalpresentationstyle
of type uimodalpresentationformsheet
show view.i want specific size of view using preferredcontentsize
working in ios 8
, showing exact how wanted same breaks ios 7
it's come full sheet.view size changed.
where wanted below image
any idea?
please check below conditional code ios 8.x , ios 7
if (system_version_greater_than_or_equal_to(@"8.0")) { modalcontroller.preferredcontentsize = cgsizemake(framesize.x, framesize.y); } else { modalcontroller.view.superview.frame = cgrectmake((screenwidth - framesize.x)/2, (screenheight - framesize.y)/2, framesize.x, framesize.y); }
hope you.
Comments
Post a Comment