gpt4 book ai didi

ipad - UIModalPresentationFormSheet 调整 View 大小

转载 作者:行者123 更新时间:2023-12-03 06:48:19 26 4
gpt4 key购买 nike

我有兴趣知道如何在使用 modalPresentationStyleUIModalPresentationFormSheet 时调整 View 大小,它看起来有固定的大小,所以我想知道是否有人出去确实设法从尺寸角度操纵弹出 View 。

因此,要么有具有固定 View 大小的 UIModalPresentationFormSheet ,要么有完整 View ,而我追求的是介于两者之间的东西。

最佳答案

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, 0, 200, 200);

关于ipad - UIModalPresentationFormSheet 调整 View 大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4266581/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com