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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.