ActionSheetを表示しようとすると、次のエラーが発生します...
2012-11-16 04:07:03.878 MKS WebTech [814:c07]-[mksWorkOrderViewController _presentActionSheet:asPopoverFromBarButtonItem:orFromRect:inView:withPreferredArrowDirections:passthroughViews:backgroundStyle:animated:]:認識されないセレクターがインスタンス0x75a5950に送信されました
- (IBAction)ActionClick:(id)sender {
popupSheet = [[UIActionSheet alloc] init];
[popupSheet setDelegate:self];
[popupSheet addButtonWithTitle:@"Contact List"];
[popupSheet addButtonWithTitle:@"Zone Descriptions"];
[popupSheet addButtonWithTitle:@"Zone Testing"];
[popupSheet addButtonWithTitle:@"Panels"];
[popupSheet addButtonWithTitle:@"Time Sheet"];
[popupSheet addButtonWithTitle:@"Inventory"];
[popupSheet addButtonWithTitle:@"Other Appt."];
[popupSheet addButtonWithTitle:@"Alarm History"];
[popupSheet addButtonWithTitle:@"Service History"];
[popupSheet addButtonWithTitle:@"Complete"];
[popupSheet addButtonWithTitle:@"Cancel"];
[popupSheet setCancelButtonIndex:10];
// Prepare your action sheet
[popupSheet showFromBarButtonItem:bntAction animated:NO];
[popupSheet release];
}
エラーが発生する"showFromBarButtonItem:bntAction"私も送信者で試しましたが、同じ結果になりました
また、canPerformActionは問題なく起動します...
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
return YES;
}