2013,在iOS中绘制(绘画,画笔,线条)的现有包装? [英] 2013, Existing package for drawing (painting, brush, lines) in iOS?

查看:170
本文介绍了2013,在iOS中绘制(绘画,画笔,线条)的现有包装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将典型的手指绘图添加到应用程序。

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 believe I have to program this from scratch, in this day and age?

很难相信没有一个共同的解决方案吗?

我能找到的只是......

All I could find is...

https://github.com/levinunnink/Smooth-Line - 查看


  • 评论:这是一个(写得很漂亮)几行的示例片段代码是如何使用路径绘制,具有良好的平滑结果。它工作得很好,但它只是用于绘制一条路径。例如,您无法使用多种颜色制作图形。没有撤消或类似的东西。 (另请参阅此处关于路径数学的第四个审核项目的说明。)

  • Review: that is a (beautifully written) example fragment of a few lines of code being how to draw with a path, with a good smooth result. It works perfectly, but it's just for drawing one "path." For example, you can't make a drawing with more than one color. there is no undo or anything like that. (See also note on the fourth review item here regarding path-math.)

https://github.com/sumanthk2006/Smooth-Line-View-1 (上述变化,但不在ARC下运行,遗憾的是演示没有正确启动等)

https://github.com/sumanthk2006/Smooth-Line-View-1 (variation of above, but does not run under ARC, unfortunately demo does not properly launch etc)


  • 评论:这是abandonedware或者也许frustrationware:)它没有运行,也没有ARC就绪。这是一个看似写得很好的课程,声称要做撤消,颜色,擦除等。它甚至有一个适当的代表来跟踪你的按钮状态。但它不起作用。

  • Review: this is "abandonedware" or maybe "frustrationware" :) It does not run and is not ARC-ready. It is a seemingly well-written class that claims to do undo, colors, erase, etc. It even has a proper delegate to track your button states. But it doesn't work.

更新关于此包装。事实上,如果你按摩它,效果很好。建议(i)丢弃示例应用程序文件。 (ii)使用现代Xcode,在两个主文件上使用转换为ARC项目功能。有一个小轿车的问题,比如它应该使用awakeFromNib。如果你让它工作它实际上做的一切,非常好。

UPDATE Regarding this paackage. As a matter of fact, if you massage it it works well. Suggest (i) throw away the example app files. (ii) using modern Xcode, use the "convert to ARC project" feature on the two main files. There are a coupe little problems like it should use awakeFromNib. If you get it working it actually does everything, really well.

在SmoothLineView1中有严重的错误。为了清楚起见,它遭受了一些严重的错误 - 当你画画时,你会看到有条纹效果。

THERE ARE SERIOUS BUGS in SmoothLineView1. just to be clear, it suffers some serious bugs - you'll see there's a "streaking" effect when you draw.

http://www.cdframeworks.com/product/brushengine


  • 评论:这个商业套餐(100美元以下)制作精良,电子邮件支持很快。不幸的是没有撤消,所以它不适合很多情况。 (也没有擦除。)

  • Review: This commercial package (under $100) is well made and email support is fast. Unfortunately it does not have undo so it's not suitable for many situations. (Also does not have erase.)

下面提到的是这篇受欢迎的文章:

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_freehand-drawing/

Mentioned below is this popular article:
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_freehand-drawing/


  • 评论:这是关于绘制曲线的实际技术的一篇很好的文章,让我们说路径的数学。不幸的是,如果您需要在iOS应用中使用的工作,可随时使用的绘图包(具有明显的功能,撤消,擦除,颜色等),它根本没有任何帮助。例如,您使用的任何实际解决方案,您或许可能希望在本文中应用数学概念。

  • Review: this is a good article on the actual TECHNOLOGY of drawing curves, on the let's say "path-math". Unfortunately it's no help at all if you need a working, ready to use, drawing package (with the obvious features, undo, erase, colors etc) to use in an iOS app. Thus for example, whatever actual solution you were using, you may, perhaps, want to apply the math concepts in this article.

我很欣赏基本概念非常简单,从头开始很容易。但这只是 - 荒谬 - 必须从零开始做一些如此平常的事情。我缺少一个坚实的包裹吗?

I appreciate that the basic concepts are very simple, it's easy enough to "start from scratch". But it's just - ridiculous - to have to do from scratch for something so commonplace. Is there a solid package I'm missing?

令人惊讶的是,上面的四个沙哑参考是唯一的东西。

It's fairly amazing that the four scratchy references above are the only things out there.

任何想法? 今天(2013年末)将图纸添加到iOS应用程序的最佳软件包是什么?感谢。

推荐答案

[2017]
我使用 https://github.com/acerbetti/ACEDrawingView/
它可以通过可可豆荚使用,并提供完整的功能,而不是在你的应用程序中集成绘图功能(颜色,画笔,大小,橡皮擦,撤消/重做/ ...)

[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/ ...)

这篇关于2013,在iOS中绘制(绘画,画笔,线条)的现有包装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆