Simple-Paint-App-iOS
Simple-Paint-App-iOS copied to clipboard
How to add a undo button into your project!
....I using your project to make a paint app but I don't know how to make a button for user can undo when they want. Can u show me?
Thanks!
@ToanNguyens Do you still need help with this?
Yab, Plz! Thanks so much!
I totally forgot about this, sorry @ToanNguyens! Adding an undo button shouldn't be a big problem. I haven't looked on this code in a very long time, but I think I would try to save the deltas between different states. Then just apply or remove the deltas depending if the user wants to step forward or backward. I hope it at least points you in the right direction :)