I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.
I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.
I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.
You can use touchesBegan:withEvent and touchesEnd:withEvent method to trace down the touches ,then furthermore inside touchesEnd message you can save the view of the context as an UIImage and again set it as background in call to touchesBegan message.
If you also wants to provide undo and redo facility then you can do it by using a tempArray and storing all the images in the touchesEnd message,or more sophisticatedly you can use NSUndoManager to provide undo functionality.Hope this all will provide u a direction.
It would be better if you post some of the code snippets of hw u have tried to do the things.
Quote:
Originally Posted by munkyman
Hi all,
I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.
I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.
I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.
I am new to iPhone development and I am looking for assistance for the best way to go about creating my first application. I have seen some tutorials where you can draw lines on a screen but I'm after something more.
I have the following requirements:
1. I want to be able to provide users with several background images.
2. The user can choose one and it will load the image where the user can draw over the image with their finger.
3. The user should be able to undo the last line drawn by pressing a button on the UI.
4. The line that is drawn should look more 3D (i.e. embossed) and not flat/2D.
5. The user should be able to select from different colors and size of paint brush.
6. The user should then be able to save the drawing so it can be accessed at another time.
I was wondering is there any tutorial that anyone is aware of to get me started or any areas I should explore further to give me my desired outcome.