iOS 8 ActionSheet颜色

时间:2014-09-10 12:30:39

标签: ios objective-c

为什么我的actionSheet看起来像这样

enter image description here

我正在使用构建目标6.1从Xcode 4.5.1构建我的代码。然后,当我在运行iOS 8 beta的iPad上构建它时,操作表看起来像这样。可以在这个问题上提供任何帮助。 这是代码

 self.actionSheet = [[UIActionSheet alloc] init];
    [self.actionSheet setDelegate:self];
    [self.actionSheet addButtonWithTitle:@"Button1"];
    [self.actionSheet addButtonWithTitle:@"Button 2"];
    [self.actionSheet showFromBarButtonItem:actionButton animated:YES];

1 个答案:

答案 0 :(得分:0)

根据这个https://developer.apple.com/library/ios/documentation/Uikit/reference/UIActionSheet_Class/index.html主题 不推荐使用UIActionSheet,您应该使用UIAlertController而不是UIActionSheet。 感谢。