ipad – UIModalPresentationFormSheet调整视图大小

ipad – UIModalPresentationFormSheet调整视图大小,第1张

概述我有兴趣知道如何我可以调整视图大小,当使用UIModalPresentationStyle的UIModalPresentationStyle,它看起来像它有一个固定的大小,所以我想知道是否有人在那里设法 *** 纵d出视图从尺寸的角度。 所以有UIModalPresentationFormSheet有固定的视图大小或全视图和我之间的东西之间。 MyModalViewController *targetC 我有兴趣知道如何我可以调整视图的大小,当使用UIModalPresentationStyle的UIModalPresentationStyle,它看起来像它有一个固定的大小,所以我想知道是否有人在那里设法 *** 纵d出视图从尺寸的角度。

所以有UIModalPresentationFormSheet有固定的视图大小或全视图和我之间的东西之间。

解决方法
MyModalVIEwController *targetController = [[[MyModalVIEwController alloc] init] autorelease]; targetController.modalPresentationStyle = UIModalPresentationFormSheet;targetController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;[self presentModalVIEwController:targetController animated:YES];// it is important to do this after presentModalVIEwController:animated:targetController.vIEw.supervIEw.bounds = CGRectMake(0,200,200);
总结

以上是内存溢出为你收集整理的ipad – UIModalPresentationFormSheet调整视图大小全部内容,希望文章能够帮你解决ipad – UIModalPresentationFormSheet调整视图大小所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1087818.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存