Quote:
Originally Posted by wadheraswati
I have to make an iPhone application somewhat like pick up sticks app on appstore. I have already done with drawing multiple lines and displaying it using CoreGraphics. But now I' stuck. What I need to do now is to delete the line when the user taps on it. I have googled a lot but dint find any method to do this. Please help. Its urgent..
Thanks..
|
How are you drawing your lines? Do you have some sort of data structure that represents the pick-up-sticks, and draw the current set of sticks in drawRect?
If so, change your data structure to remove one of the lines, and then call setNeedsDisplay on your custom view so it gets redrawn.
You're going to have to provide a lot more information if you want help.
So you know, I tend to ignore vague, "How do I do <insert poorly described complex task>" type posts like this. They are generally very painful.
If you want help, think about the level of detail your readers will need in order to understand your problem enough to answer it. Provide as much RELEVANT detail as you can, while trimming away extraneous detail. If you post code, delete the Apple boilerplate code, for example. Post headers and method implementations for the specific question you are asking, and don't post entire .m files.