Ios 更改UIModalPresentationFormSheet模型样式的当前viewController的框架
如何更改模型样式UIModalPresentationFormSheet的显示视图控制器的框架 预期框架 当前帧 我已尝试设置视图边界OverlyViewController.view.superview.bounds=CGRectMake20,20600400 设置了显示视图的框架和中心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 |
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显示视图的加载哦,这真是太好了。作为答案张贴,这样对其他人也会有帮助