Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/101.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 更改UIModalPresentationFormSheet模型样式的当前viewController的框架_Ios_Objective C_Ipad_Uimodalpresentationstyle - Fatal编程技术网

Ios 更改UIModalPresentationFormSheet模型样式的当前viewController的框架

Ios 更改UIModalPresentationFormSheet模型样式的当前viewController的框架,ios,objective-c,ipad,uimodalpresentationstyle,Ios,Objective C,Ipad,Uimodalpresentationstyle,如何更改模型样式UIModalPresentationFormSheet的显示视图控制器的框架 预期框架 当前帧 我已尝试设置视图边界OverlyViewController.view.superview.bounds=CGRectMake20,20600400 设置了显示视图的框架和中心 OverlayViewController.view.superview.autoresizingMask = UIViewAutoresizingFlexibleTopMargin |

如何更改模型样式UIModalPresentationFormSheet的显示视图控制器的框架

预期框架

当前帧

我已尝试设置视图边界OverlyViewController.view.superview.bounds=CGRectMake20,20600400

设置了显示视图的框架和中心

OverlayViewController.view.superview.autoresizingMask =
        UIViewAutoresizingFlexibleTopMargin |
        UIViewAutoresizingFlexibleBottomMargin |
        UIViewAutoresizingFlexibleLeftMargin |
        UIViewAutoresizingFlexibleRightMargin;
        CGRect screenBounds = [[UIScreen mainScreen] bounds];
        OverlayViewController.view.superview.frame = CGRectMake(20,20,600,400);
        CGPoint center = CGPointMake(CGRectGetMidX(screenBounds), CGRectGetMidY(screenBounds));
还尝试了setModalPresentationStyle:带框架的UIModalPresentationPageSheet无法设置页面工作表的原点


因此,请建议如何进行此操作

以便您的问题得到解决?是的,通过在视图中设置self.navigationcontroller.superview.frame显示视图的加载哦,这真是太好了。作为答案张贴,这样对其他人也会有帮助