为什么我的actionSheet看起来像这样
我正在使用构建目标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];
答案 0 :(得分:0)
根据这个https://developer.apple.com/library/ios/documentation/Uikit/reference/UIActionSheet_Class/index.html主题 不推荐使用UIActionSheet,您应该使用UIAlertController而不是UIActionSheet。 感谢。