【发布时间】:2011-01-03 18:10:09
【问题描述】:
我想知道是否可以创建一个具有“U”形或由任何其他曲线图案组成的滚动视图??
有什么想法吗??
【问题讨论】:
标签: iphone uikit uiscrollview
我想知道是否可以创建一个具有“U”形或由任何其他曲线图案组成的滚动视图??
有什么想法吗??
【问题讨论】:
标签: iphone uikit uiscrollview
您可以写Custom Gesture Recognizer 来识别“U”。
它涉及实现以下方法:
- (void)reset;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
并做几何图形以找到您正在寻找的图案。
【讨论】:
对于渲染,可能某种变换层会有所帮助。但是,对于触摸处理,您可能需要靠自己。
【讨论】: