acerbetti / ACEDrawingView

An open source iOS component to create a drawing app
Apache License 2.0
665 stars 171 forks source link

Text label(ACEDrawingLabelView) missing after save image #76

Closed param0091 closed 7 years ago

param0091 commented 7 years ago

Label(ACEDrawingLabelView) not available when save photo. As code no is available in drawTool to draw label over image. Use latest version of library installed with pods.

ZhouRR commented 7 years ago

maybe you need call method 'prepareForSnapshot'

cor0na commented 7 years ago

I also had the same problem. Calling 'prepareForSnapshot' method does not fix it. Why can not the DraggableText export as UIImage?

ZhouRR commented 7 years ago

[ACEDrawingView toImage]; and in UIView+Image.m

cor0na commented 7 years ago

@ZhouRR Thanks for your nice code, perfect! I was able to confirm the UIImage included the DraggableText.

acerbetti commented 7 years ago

Thanks for the code. Do you mind to submit a PR ? I've been very busy and I can't find much time to maintain this project

ZhouRR commented 7 years ago

@cor0na No thanks. @acerbetti No thanks.