0
我有下面這段代碼是我期待的觸摸事件運行:UITouch - 事件沒有響應
- (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];
}
}
其不被執行,所有的想法我做錯了嗎?
問候, 斯蒂芬
如何我可以證實這一點嗎?我正在查看UIView屬性,我在正確的位置? – Stephen 2010-07-13 10:04:06
對不起,只刷新了屏幕,看到您的其他帖子,請忽略上一個問題。 – Stephen 2010-07-13 10:05:57
是的,勾選了用戶交互已啓用。 – Stephen 2010-07-13 10:07:25