Draw/Paint like sketch color inside a bezier path in UIView

前端 未结 1 1249
失恋的感觉
失恋的感觉 2021-01-15 04:14

I am drawing a shape layer with help of a UIBezier Path on a UIView :

    CAShapeLayer *pathLayer = [CAShapeLayer layer];
    pathLayer.frame=CGRectMake(-vie         


        
相关标签:
1条回答
  • 2021-01-15 04:57

    Took another image which is snapshot of view with desired path ,filled with selected color. Than on touches moved called drawrect with same code with a little exception of [UIColor colorWithPatternImage:img] as the color to context. Drawing in UIView on touch points gives blurr drawing effect on boundaries

    0 讨论(0)
提交回复
热议问题