【问题标题】:UIScrollView in "U" shaped“U”形UIScrollView
【发布时间】:2011-01-03 18:10:09
【问题描述】:

我想知道是否可以创建一个具有“U”形或由任何其他曲线图案组成的滚动视图??

有什么想法吗??

【问题讨论】:

    标签: iphone uikit uiscrollview


    【解决方案1】:

    您可以写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;
    

    并做几何图形以找到您正在寻找的图案。

    【讨论】:

    • 基本上我想要几何,你能帮帮我吗:-s
    【解决方案2】:

    对于渲染,可能某种变换层会有所帮助。但是,对于触摸处理,您可能需要靠自己。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-22
      • 1970-01-01
      • 1970-01-01
      • 2017-09-14
      • 2023-03-27
      • 1970-01-01
      相关资源
      最近更新 更多