i am using he quartz for drawing the image in my view and now i want to add the undo button in my toolbar button on myipad app.
what is code or any example of doing this.
i am using he quartz for drawing the image in my view and now i want to add the undo button in my toolbar button on myipad app.
what is code or any example of doing this.
Store the old state in a stack. When the undo button is pressed, pop the stack and restore the state. Disable the undo button when the stack is empty. Be careful not to run out of memory.
What constitutes "old state" is probably very specific to your application.