addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

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

Brief:

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.

Preparation:

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 (https://addons.mozilla.org/en-us/firefox/addon/sqlite-manager/)


Agenda:

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.

Content:

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. (https://addons.mozilla.org/en-us/firefox/addon/sqlite-manager/.) 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.

Reference:

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

http://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/index.html#//apple_ref/doc/uid/TP[masked]


"iOS App Programming Guide," especially the sections "App Design Basics" and "Core App Objects"

http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AppDesignBasics/AppDesignBasics.html#//apple_ref/doc/uid/TP[masked]-CH2-SW1


"Programming with Objective-C" especially "Types and Collections"

https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html#//apple_ref/doc/uid/TP[masked]-CH1-SW1


Join or login to comment.

  • A former member
    A former member

    Sorry can't make it.

    October 29, 2013

  • A former member
    A former member

    Sorry! Had to change RSVP to NO at this late hour. Going to be stuck with work tonight. Very bummed about this. Hope it's not too late for someone else to use my spot. Will material from the workshop be available online? Thanks!

    October 29, 2013

  • Angus Vincent W.

    What level of programming is required, and what tools are being used for this meet up.

    August 29, 2013

    • A former member
      A former member

      Hi Emil, Angus,

      The idea is that you will be able to follow the programming section even if you don't know Objective C, though of course you need to know the language if you want to pick up the specific code. If you haven't programmed before, the programming part may be Greek. If you do know some Objective C and want to follow along and compile the app we will be exploring, you should download Xcode. SQLite is a C API but we will be going over the C syntax step-by-step. Michael

      October 29, 2013

    • A former member
      A former member

      Everyone should come with the Firefox browser installed with the SQLite Manager add-on as described above.

      October 29, 2013

  • A former member
    A former member

    Thank you all for your interest in the NYC Open Data workshop and we look forward to seeing you Tuesday. The workshop will have 3 parts: 1) Getting NYC Open Data from the Socrata portal, 2) preparing the data in SQLite manager, and 3) using the data in an application. Unfortunately, due to a scheduling issue, the third part will only have example code for iOS. The SQL statement and basic implementation will be the same, and anyone interested in using NYC Open Data with Android or another platform should come, as you will be able to see the steps up to that point and the example will be substantially the same. All participants, before attending the workshop please install the SQLite Manager for the Firefox Browser (and Firefox, if you don't have it). Please feel free to comment with any questions, and we look forward to seeing you Tuesday. Michael Sanderson

    1 · October 28, 2013

  • A former member
    A former member

    This is Michael Sanderson, who is conducting the workshop. My apologies on the need to postpone, and I thank everyone for your interest and patience.

    If you want to get started, I have posted a page "SQLite on iOS and Android: Additional Resources" (http://bit.ly/18KDEXk) at the Meetup Group. It would be helpful to have a look before, after or in lieu of attending the workshop. Feel free to contact me (or post here if you think it's if interest to everyone) and please stay tuned for the confirmed new date.
    --Michael

    1 · October 7, 2013

  • A former member
    A former member

    Is the first workshop material available online?

    August 29, 2013

  • Mike S.

    Is this the same as the prior IOS workshop or is it a continuation?

    August 29, 2013

    • A former member
      A former member

      It's largely the same material, but tweaked based on what worked best in the first one. This includes exporting data from Socrata and using SQLite Manager, and seeing sample code in action. (The same instructor too, though I will be joined by an Android specialist.) A full description will go up shortly.

      August 29, 2013

Our Sponsors

  • NYC Data Science Academy

    use"nycopen100ff" coupon to take classes on www.nycdatascience.com

  • Supstat

    Supstat shares its expertise in data mining and visualization.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy