2013, Existing package for drawing (painting, brush, lines) in iOS?

后端 未结 2 1524
陌清茗
陌清茗 2020-12-29 16:23

I need to add typical finger drawing to an app.

(The usual.... choose colors, erase, thickness - just the usual you see in every app made.)

It\'s hard to bel

相关标签:
2条回答
  • 2020-12-29 16:45

    http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_freehand-drawing/ has a good, clear tutorial on smooth freehand drawing on the ios. If you just follow the tutorial, you can implement it easily into whatever app you are trying to make.
    It has stuff about increasing line quality and smoothness, and stroke quality.
    http://www.raywenderlich.com/18840/ is another tutorial on a simple drawing app, self-contained. You can combine aspects of both to get what you want.
    edit: https://developer.apple.com/library/ios/samplecode/GLPaint/Introduction/Intro.html is the GLPaint sample provided by apple, which includes detecting shake. I thought it seemed more official, since it's from apple

    to answer your question, there is no package for drawing directly, but there is a UIKit class, UIBezierPath, that lets you draw shapes made of straight lines or some curves.

    0 讨论(0)
  • 2020-12-29 17:11

    As of 2017, I use https://github.com/acerbetti/ACEDrawingView/.

    It can be used through cocoa pods, and provide full functionality over integrating a drawing feature in your app (color, brush, size, eraser, undo/redo/, etc).

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