關於我正在研究的當前項目,在其中一個視圖上,我有一個UIView
及其上的UIScrollView
,它由接口構建器構建。在UIScrollView上獲取UIResponder實例metods。 iPhone
我已實現了以下UIResponder
實例方法:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
但控制涉及到這個方法只有當觸摸事件發生在未覆蓋的區域UIScrollView
。
我怎樣才能在UIScrollView
上獲得觸摸事件的保持?
感謝名單
你可以顯示代碼在哪裏初始化scrollView和它包含在視圖控制器的代碼?將代碼添加爲您的問題的更新,以便可以使用代碼格式化程序。 – Jim 2011-12-22 23:03:12
好的,thanx吉姆.. – shebelaw 2011-12-23 03:24:08