views:

101

answers:

2

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.

A: 

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.

rpetrich
can you give me some code or any link for doing this.
uttam
i am having problem with undo functionality.can you give me some kind of help.
uttam
Not unless you present more details on how your app is designed.
rpetrich