Join Simon Allardice for an in-depth discussion in this video Creating tables from CSV files, part of Code Clinic: Swift.
- CSVs are a common export option for many databases…from spreadsheets for many applications…because they are so simple that…they can work almost anywhere.…I want to create two separate HTML tables,…one for each CSV file.…In fact, I want it to support the idea…that we might have more CSV files…and just create one table for each.…I'm starting with the project I created…in the previous example that just…adds an H1 to the page.…So add a new method here.…This'll be called createTableFromCSV…and it'll take a parameter of a string…which will just be the path to a CSV file.…
This will return a completely formatted HTML table,…though again, I won't be returning it as a string…but as a proper DOM object, a DOM element object…to be exact, and this is a class defined…in that web kit framework.…So inside of this method I'm going to load…that CSV file in, I'm gonna then break it apart into lines,…this'll just be an array of strings,…and then break each of those apart…by commas into another array.…So for each line in the CSV file,…
Simon introduces challenges and then provides an overview of his solutions in Swift. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4 - Accessing Peripherals
5. Problem 5 - Recursion and Directories
6. Problem 6 - Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.