在另一个应用程序中运行我们的应用程序(64位投诉)时,我遇到了一个神秘的崩溃问题。在UIKit
被解雇后,崩溃发生在UIActionSheet
内。
以下是我正在执行的一系列操作:
2014-07-14 14:26:57.404 AppleEasyPay[677:60b] -[__NSCFType _canBecomeKeyWindow]: unrecognized selector sent to instance 0x15c6abb70
- (void)showDeleteRequestConfirmation:(id)iSender {
self.actionSheet = [[UIActionSheet alloc] init];
self.actionSheet.destructiveButtonIndex = 0;
self.actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
[self.actionSheet addButtonWithTitle:MyLocalized(kDeleteButtonKey)];
[self.actionSheet addButtonWithTitle:MyLocalized(kCancelButtonKey)];
self.actionSheet.title = MyLocalized(kDeleteConfirmationMessageKey);
self.actionSheet.tag = kDeleteConfirmationActionSheet;
self.actionSheet.delegate = self;
[self.actionSheet showInView:self.tableView];
}
- (void)showCompleteRequestConfirmaton:(id)iSender {
if (self.totalQuantityScanned < self.totalQuantityToBeScanned) {
self.actionSheet = [[UIActionSheet alloc] init];
self.actionSheet.cancelButtonIndex = 1;
[self.actionSheet addButtonWithTitle:MyLocalized(kCompleteButtonKey)];
[self.actionSheet addButtonWithTitle:MyLocalized(kCancelButtonKey)];
self.actionSheet.title = MyLocalized(kCompleteRequestMessageKey);
self.actionSheet.tag = kCompleteConfirmationActionSheet;
self.actionSheet.delegate = self;
[self.actionSheet showInView:self.tableView];
} else {
[self completeRequest:iSender];
}
}
答案 0 :(得分:0)
这是一个神秘的奇怪问题。我刚刚为我的UIAlerView添加了一个强大的属性,我在第一个操作表上显示了该属性并将其放在头文件中并且它有效。将属性放在扩展名中会导致崩溃。