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
Steven Rayzman
2,423 PointsHow 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?)
3 Answers
Stephen Whitfield
16,771 Points- UITextView
- 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.
Stephen Whitfield
16,771 PointsSo then you're looking for external storage, in which case you'll need an external database to post those messages to.
Steven Rayzman
2,423 PointsWould Parse be a good option?
Stone Preston
42,016 Pointsparse would work fine
Steven Rayzman
2,423 PointsSteven Rayzman
2,423 PointsWould 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