gpt4 book ai didi

iphone - UIActionSheet 中的奇怪颜色

转载 作者:行者123 更新时间:2023-11-29 03:55:30 24 4
gpt4 key购买 nike

今天我在我的项目中添加了一个 UIActionSheet,它显示得很奇怪:

enter image description here

如您所见,操作表仅显示文本 - 没有按钮 - 并且背景是全黑的。我只想在我的应用程序上使用 UIActionSheet 的默认样式。

我正在使用 Storyboard ,以下是呈现操作表的代码:

UIActionSheet *_actionSheet = [[[UIActionSheet alloc] initWithTitle:LocStr(@"Cell_TellFriend_Key") delegate:self cancelButtonTitle:LocStr(@"Cancel_Key") destructiveButtonTitle:nil otherButtonTitles:LocStr(@"EmailShare_Key"),LocStr(@"FacebookShare_Key"),LocStr(@"TwitterShare_Key"),nil] autorelease];

_actionSheet.actionSheetStyle = UIActionSheetStyleDefault;

AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
[_actionSheet showFromTabBar:appDelegate.tabbarCtrl.tabBar];

我做错了什么?我该如何解决这个问题?

最佳答案

_actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque;

关于iphone - UIActionSheet 中的奇怪颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16556902/

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