我收到一条错误消息,显示在此行上显示“使用未声明的标识符‘事件’”。有人可以帮忙吗?
UIView *senderView = [[event.allTouches anyObject] view];
这是代码。
}
- (void)didTap_tabBarItem1 {
CurrentItemsViewController *controller = [[CurrentItemsViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc]
initWithRootViewController:controller];
[navigationController setNavigationBarHidden:YES animated:NO];
UIView *senderView = [[event.allTouches anyObject] view];
CGRect senderFrame = [senderView convertRect:senderView.frame toView:self.view];
self.tabBarItem1Popover = [[[UIPopoverController alloc] initWithContentViewController:navigationController
] autorelease];
[self.tabBarItem1Popover presentPopoverFromRect:senderFrame inView:self.view permittedArrowDirections:
UIPopoverArrowDirectionAny animated:YES];
[navigationController release];
[controller release];
}
谢谢。