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

How to Add A Messaging Box To Your App

How can I add an area where users of the app can type a message and then I can save the message to a database. 1)How can I add an area where users of the app can type a message? Not a textfield, as the message may be multiple lines.

2) What service can I use to save the message? (As I am currently using parse for the rest of the applications, would that be a viable option?)

Stone Preston

3 Answers

  1. UITextView
  2. You will need a persistence layer to internally store data. For iOS development, there is an API you can use called Core Data. You might want to make a run by the Build A DIary App course to see how that works.

Would core data be the best option? I need to save the message in a way that another user on another device, can receive it. Stephen Whitfield

So then you're looking for external storage, in which case you'll need an external database to post those messages to.

Would Parse be a good option?

parse would work fine