Closed param0091 closed 7 years ago
maybe you need call method 'prepareForSnapshot'
I also had the same problem. Calling 'prepareForSnapshot' method does not fix it. Why can not the DraggableText export as UIImage?
[ACEDrawingView toImage]; and in UIView+Image.m
(UIImage )toImage { UIGraphicsBeginImageContextWithOptions(self.frame.size, NO, 0.0); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();
return newImage; }
@ZhouRR Thanks for your nice code, perfect! I was able to confirm the UIImage included the DraggableText.
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
@cor0na No thanks. @acerbetti No thanks.
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.