Draw and Erase on ImageView using UIBezierPath

烂漫一生 提交于 2019-12-13 04:46:30

问题


I write this link's answer code to create ImageViewLayer and Imageview. StackOverflow Link

This link gives me the below result.

It's work fine .But I want ,when user press the original button... and then touches with finger it remove the clear area ang fill with the previous one.

And how to create Undo Functionality for this..If any question regarding this please add your comment..Please help me...


回答1:


how to draw CALayer with line path like simulate eraser effect?

this is the post i get the answer. there is a sample code about the effect. what you are different is change the gray color layer to be the "paper imager"

hope it help you



来源:https://stackoverflow.com/questions/27438068/draw-and-erase-on-imageview-using-uibezierpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!