gpt4 book ai didi

objective-c - 在 iPad 应用程序中心显示操作表

转载 作者:行者123 更新时间:2023-11-29 04:12:28 25 4
gpt4 key购买 nike

在 View 中心显示 actionsheet,而不是在 iPad 应用popover 中。 Appstore 允许这样做吗?

最佳答案

试试这个:-

UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"options" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Option 1", @"Option 2", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
//popupQuery.
[popupQuery showInView:self.view];
}

是的,它得到了苹果的批准

希望对你有帮助

关于objective-c - 在 iPad 应用程序中心显示操作表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14210412/

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