Past Meetup

IOS workshop I: make Open Data App with SQLite on iOS(second time)

This Meetup is past

76 people went

Location image of event venue



Michael Sanderson will show you how to make your first simplest iphone app using nyc open data.

We need a lot of volunteers to walk around and help others to debug their codes. If you know IOS and willing to help others out, please drop me a msg. Thank you very much!

Speaker Bio:

Michael Sanderson first started programming for iPhone in 2011 as a hobby and now makes iOS apps full-time. He was a winner in May 2013 of the MTA/AT&T Hackathon, placing third with a team for the app AccessWay, which helps the blind and visually impaired get subway information.


Before you come to the class, it will be nice to consider:

1. To install Xcode (requires Mac, available on the Mac App Store, requires 10.7 and above)

2. To install SQLite Manager for Firefox ( )


7:00-8:00 Michael will explain a few things close to IOS app dev
8:00-9:00 individual hack time, you can make sure all the codes run on your own Mac before you go.


1) How to use Socrata to export data in CSV format.

2) How to use SQLite Manager to turn the CSV file into a SQLite database. SQLite Manager is a free manager that works through the Firefox browser, and so is available for all platforms, though only Macs can make iPhone apps. ( .) SQLite is an SQL version that's free and open-source and built into the iPhone. Edits and customizing of the database can also be done with SQLite manager, both with SQL directly and a graphical user interface.

3) How to load the SQLite database into an iPhone app project, add the frameworks and set up the header files. For the lesson, I show how to create a TableView, which is one of the most common kinds of iOS apps and has a template for Xcode.

4) How to get data from the SQLite database with specific code: This includes a) getting the database path and loading the database. b) preparing the sql statement to get the data you want in the order you want, c) "stepping" through the rows to put the data into variables, and d) "finalizing" the statement (necessary for performance reasons) and closing the database. These are simple steps that are easy to follow.

(Actually, because the SQLite steps are in the C language, anyone on any platform that uses SQLite can perform these steps.)

5) Actually part of step c) in number 4 -- how to create model objects to easily save the data from the table so that it can be easily retrieved, and how to do so to display it in a table.


Start Developing iOS Apps Today, including sections "Setup," "Jump Right In," "Tools," "Language" and "App Design: Know the Core Objects of Your App"[masked]

"iOS App Programming Guide," especially the sections "App Design Basics" and "Core App Objects"[masked]-CH2-SW1 ([masked]-CH2-SW1)

"Programming with Objective-C" especially "Types and Collections"[masked]-CH1-SW1 ([masked]-CH1-SW1)