gpt4 book ai didi

ios4 - 带有方形(0 半径)角的 UIModalPresentationFormSheet?

转载 作者:行者123 更新时间:2023-12-04 15:37:28 31 4
gpt4 key购买 nike

默认情况下,iPad 模态表单获得圆角。在一些 Apple 的应用程序中,例如 iTunes,表单具有完美的方角。是否有一种相对简单的方法可以删除不会让我被 App Store 拒绝的圆角半径?

最佳答案

把它放在你正在显示的 View 中:

//You will have to link to the QuartzCore library
#import <QuartzCore/QuartzCore.h>

- (void)viewDidLoad
{
[super viewDidLoad];
//set border radius on initial load
self.view.layer.cornerRadius = 0;
}

- (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
//for some reason the cornerRadius resets itself on orientation change
self.view.layer.cornerRadius = 0;
}

关于ios4 - 带有方形(0 半径)角的 UIModalPresentationFormSheet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3705445/

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