我可以在iOS 7中显示操作表(actionSheet),但无法在iOS 8环境中显示。有没有办法进行跟踪追踪?
UIActionSheet *_actionSheet = [[UIActionSheet alloc] initWithTitle:@"Account"
delegate:self
cancelButtonTitle:@"Close"
destructiveButtonTitle:@"Log Out"
otherButtonTitles:@"View Account", nil];
[_actionSheet showInView:appDel.window];
iOS8
中,UIActionSheets
已经被弃用,取而代之的是UIAlertController
。请阅读https://developer.apple.com/Library/ios/documentation/UIKit/Reference/UIAlertController_class/index.html。 - Popeye