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

我使用构建目标6.1从Xcode 4.5.1构建我的代码。然后,当我在运行iOS 8测试版的iPad中构建它时,操作手册看起来就像是this.Can any在这个问题上的帮助。以下是代码
self.actionSheet = [[UIActionSheet alloc] init];
[self.actionSheet setDelegate:self];
[self.actionSheet addButtonWithTitle:@"Button1"];
[self.actionSheet addButtonWithTitle:@"Button 2"];
[self.actionSheet showFromBarButtonItem:actionButton animated:YES];发布于 2014-10-13 13:56:22
根据此https://developer.apple.com/library/ios/documentation/Uikit/reference/UIActionSheet_Class/index.html线程,UIActionSheet已被弃用,您应该使用UIAlertController而不是UIActionSheet。谢谢。
https://stackoverflow.com/questions/25765541
复制相似问题