我希望在触摸事件上运行以下代码:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch;
touch=[touches anyObject];
CGPoint point=[touch locationInView:self.view];
if (CGRectContainsPoint([billTotal frame],point))
{
[self pickerShow];
}
}
它没有被执行,任何想法我做错了什么?
问候,斯蒂芬