Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

HandWriting

How we can add function in the photo message or video message in rabbit app to handwrite a message and send it to our friends?

3 Answers

Stone Preston
Stone Preston
42,016 Points

This seems pretty doable. I assume you want to make it more like snapchat? you would have to add an additional view with an image view and a textField over that image view. Display the captured photo in the image view and then let the user type the text in the text field. If you wanted the text field to be invisible (like it is on snapchat) you can set the color to clear. You would also have to add an additional caption column to the parse message class.

You will have to change the layout of your storyboard a bit (by adding an additional view, and instead of displaying the image picker modally on the view controller that lets you choose which friends to send it to you would have to display before the editing caption view. You would also have to pass the information obtained in this view controller on to the select friends view controller in prepare for segue.

edit: I just noticed you said handwrite a message, what do you mean by handwrite?

I love you answer and it contains super valuable informations.

I apologize for this handwrite, I actually mean before you take or after you take the picture or video to be able to touch the screen and write something.

Stone Preston
Stone Preston
42,016 Points

oh ok. You will also have to modify the view the displays the message as well. (the one that times out) So all in all its adding a new view controller, some new controls, a few more parse API calls, but it should be pretty simple to do.

Thank you very much =] if I stuck somewhere can I ask you again?

Stone Preston
Stone Preston
42,016 Points

sure thing. just post in this same thread so ill be notified.

Thank you very much mr.stone :)

Mr. Stone? I would like to ask you, if you would like to collaborate together to create an iphone app, for travellers.

Thank you =]