gpt4 book ai didi

ios - 如何使用 uiactivityviewcontroller 修复默认弹出菜单

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

我有问题,我的应用程序使用默认的 uiactivityviewcontroller,但它在 iphone 6+ 上太大了。如何解决? Button in my app too big Button other app

我的代码

MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init];
mail.mailComposeDelegate = self;
[self presentViewController:mail animated:YES completion:NULL];

最佳答案

UIAlertController *actionSheet= [UIAlertController
alertControllerWithTitle:nil
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *actionSheetDeleteDraft = [UIAlertAction
actionWithTitle:@"Delete Draft"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
NSLog(@"Delete is pressed");
}];
UIAlertAction *actionSheetSaveDraft = [UIAlertAction
actionWithTitle:@"Save Draft"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
NSLog(@"Save pressed");
}];
UIAlertAction *actionSheetCancel = [UIAlertAction
actionWithTitle:@"Cancel"
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * action)
{
NSLog(@"Cancel pressed");
}];

[actionSheet addAction:actionSheetDeleteDraft];
[actionSheet addAction:actionSheetSaveDraft];
[actionSheet addAction:actionSheetCancel];
[self presentViewController:actionSheet animated:YES completion:nil];

关于ios - 如何使用 uiactivityviewcontroller 修复默认弹出菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33690416/

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