ipad - How to resize view using UIModalPresentationFormSheet on iOS 8 -


looks old workaround resizing view (from sheet style) doesn't work on ios 8.

any other solutions ?

for example, below code works on ios 7, not ios 8.

uiviewcontroller *viewcontroller = [[uiviewcontroller alloc] init]; uinavigationcontroller *navigationcontroller = [[uinavigationcontroller alloc]        initwithrootviewcontroller:viewcontroller]; navigationcontroller.modalpresentationstyle = uimodalpresentationformsheet;  navigationcontroller.modaltransitionstyle = uimodaltransitionstylecrossdissolve;  [self presentviewcontroller:navigationcontroller animated:yes completion:nil];  navigationcontroller.view.superview.frame = cgrectmake(0, 0, 800, 544); navigationcontroller.view.superview.center = self.view.center; 

finally found solution on ios 8, need implement -(cgsize)preferredcontentsize on each view controller.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -