IOS Workshop I: Make Open Data App with SQLite on iOS (second time)

Avatar
Posted on Oct 30, 2013

IOS workshop I_1

 

Many thanks go to Michael Sanderson for giving such a great workshop!

-------------------------------------------

Meetup Announcement:

In this workshop, Michael Sanderson showed you how to make your first simplest iphone app using nyc open data.

Speaker:

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.

Outline:

First, Michael explained a few things close to IOS app dev. Then it was individual hack time, so everyone could make sure all the codes run on your own Mac before they go.

Michael's speech covered the following points:

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.

Preparation:

Before you see more details about this workshop, it would 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/)

-------------------------------------------

Other Useful Info Link:

Reference:

Start Developing iOS Apps, 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/TP40011343

"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/TP40007072-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/TP40011210-CH1-SW1

 

About Author

Related Articles

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp