9

我的 iOS7 应用程序在 UIActionSheet 中有一个奇怪的视觉错误。如下所示。有什么想法吗?

在此处输入图像描述

代码:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Done" destructiveButtonTitle:nil otherButtonTitles:nil];
[actionSheet showInView:self.view];
4

1 回答 1

3

对我来说,在绘制按钮层时看起来像一个 iOS7 错误,真的想不出解决方案,但除了试图找出导致这种情况发生的因素

也许尝试不同的方法,看看你是否取得了一些成功?

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
[actionSheet addButtonWithTitle:@"Done"];
[actionSheet showInView:self.view];

或者也许将它设置在otherButtonTitles?

这是一个奇怪的问题,但如果你能找到原因,可能值得将错误报告提交给苹果

于 2013-09-30T20:23:08.090 回答