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 trialAlex Danner
4,107 PointsIntegrating Xcode & Databases
I have many app ideas in mind that I am looking to start creating but I am confused on how to integrate iOS apps with a database. I am C# programmer so I am wondering if there is a way to use SQL Server databases, Oracle, or any other. I am just about finished all of the swift courses y'all provide so I am trying to figure out where to go from here. Also, I have heard a fair amount about Core Data and would love to learn more about it. Are these topics something you could go over in some new videos, or do you have a particular place in mind online that could help me out?? Thanks!
3 Answers
Joern Lindner
13,472 PointsHi Alex, I think Core Data is the right topic to start, since it is already implemented in Xcode. And as far as I know, it uses a SQLite database to store your data. If you want to jump right into a code example, create a new project in Xcode -> Master-Detail-Application and in the next window, check 'Use Core Data'.
I hesitate a bit to refer here to another website with programming tutorials... but if you google "core data tutorial swift", the very first link is a great written tutorial I worked through and helped me a lot.
Cheers Joern
Patrick Cooney
12,216 PointsI don't think you would want to use SQL Server or Oracle or MySQL because they're pretty large from what I remember. In addition to Core Data there are a whole lot of SQLite wrappers out there. If you'd prefer not to use Core Data I would look into those. Just Google "iOS SQLite wrapper" and a bunch should pop up, all with different features/benefits.
Alex Danner
4,107 PointsThanks for responding so quickly, Joern! I realized that treehouse has Core Data tutorials so that should be a good start. I will look into SQLite as well. Thanks!