推 heyshi:感謝大大 05/17 12:12
※ 引述《heyshi (ishyeh)》之銘言:
: 目前在xib上是在uiview上放了uiscrollview
: 參考了apple文件上的scrolling sample
: 在當中show了n個imageview,但目前是想要讓
: 我click了目前的image就會跑出alert
: 想請問該如何接收imageview上的事件
: 看了uiscrollviewdelegate裡好像沒有
: 目前subview被選取會觸發的function
之前我會自已繼承 UIScrollView..
Header
@interface MyUIScrollView : UIScrollView {
}
Implementation
然後再處理
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
--
希望有用,覺得有點太不iOS了。就是自已處理 touch,
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.205.99