From the course: Code Clinic: Swift

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Build the database

Build the database - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

Build the database

- [Instructor] The data for our database is inside of a CSV file. So you're going to see the fields at the top, so we have date, time, AirTemp, et cetera. And then we have, on the next line, ordered data that corresponds to each of these fields. If you're following along without the exercise files, you can copy down this information. What I would recommend doing, is copying down these first two lines. And of course the numbers don't have to be exactly the same. Once you've done that, just copy and paste this second line, and change the date, and some of the numbers. From there you should be good. You definitely don't need as many records as this file has, because that would take way too much time. We're looking at hundreds of thousands of lines in this file, so don't do that. Just create as many days as you want. And make sure that you update your date pickers and Xcode accordingly. So only cover those dates that you have data for in here. So everything should be formatted just like…

Contents