gpt4 book ai didi

iphone - UIActionsheet iPad/Iphone

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:17:32 24 4
gpt4 key购买 nike

我目前正在为我的通用应用程序使用 UIActionsheet,效果很好,但我希望 iPad 操作表类似于 iPhone 操作表。

iPad 上有什么类似于 iPhone 操作表的吗?或者,有没有办法在没有方向箭头的情况下重新定位 iPad 操作表和 popoverview?

谢谢

编辑:这是我实现和添加操作表的代码

adActionSheet = [[UIActionSheet alloc]initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Go to Site", @"Some other button", nil];
[adActionSheet showFromRect:CGRectMake(300, 1150, 200, 200) inView:self.view animated:YES];

最佳答案

在 iPad 上,操作表会自动显示在弹出窗口中。这是无法改变的。您也不能删除数组。 UIActionSheet API 不支持您想要的内容。

您唯一的解决方案是执行您想要的自定义实现。

关于iphone - UIActionsheet iPad/Iphone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13690413/

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