w13-webservice-sqlite.pdf - Google Drive

0 downloads 70 Views 945KB Size Report
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retryi
APPLICATION DEVELOPMENT (CONNECT SERVER-2)

MOBILE APPLICATION DEVELOPMENT

MOBILE APPLICATION DEVELOPMENT

MAIN.STORYBOARD

MOBILE APPLICATION DEVELOPMENT

OUTLINE ▸ Database

status

status

MOBILE APPLICATION DEVELOPMENT

OUTLINE ▸ Check data in database data

select data .php check value

status

status

MOBILE APPLICATION DEVELOPMENT

CODING ▸ Check data in database

.php check value

MOBILE APPLICATION DEVELOPMENT

CODING ▸ Check data in database

MOBILE APPLICATION DEVELOPMENT

SQLITE ▸ It is an embedded SQL database engine. ▸ It reads and writes directly to ordinary disk files. ▸ It is a relational database management system contained in a C programming library. ▸ The database operations use a bridge (Objective-C) to transfer data between sqlite and swift.

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Step to create .sqlite - Open Sqlite Manager, after that create a database and a table

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Step to create .sqlite - Open Sqlite Manager, after that create a database and a table

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Step to create .sqlite - Open Sqlite Manager, after that create a database and a table

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Step to create .sqlite - Open Sqlite Manager, after that create a database and a table

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Add the data for testing

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Add the data for testing

MOBILE APPLICATION DEVELOPMENT

SQLITE-CREATE DATABASE ▸ Add the data for testing

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ First step : add libsqlite3.0.tbd library into project

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ Second step : add database file (sqlite) into project ▸ Third step : add SQLiteDB.swift that you can download from http://bit.ly/sqlite-file ▸ Last step : create file Bridge.h and Bridge.m, after that, your app has new three files(Bridge.h,Bridge.m and nameOfApp-Bridge-Header.h).

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ This is Bridge file (called bridge header) ▸ Bridge.h ▸ Bridge.m ▸ nameOfApp-Bridge-Header.h

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ This is Bridge file (called bridge header) ▸ Bridge.h ▸ Bridge.m ▸ nameOfApp-Bridge-Header.h

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ This is Bridge file (called bridge header) ▸ Bridge.h ▸ Bridge.m ▸ nameOfApp-Bridge-Header.h

MOBILE APPLICATION DEVELOPMENT

SQLITE WITH SWIFT ▸ This is Bridge file (called bridge header) ▸ Bridge.h ▸ Bridge.m ▸ nameOfApp-Bridge-Header.h

DEVELOPMENT In fileAPPLICATION viewcontroller (.swift) ▸MOBILE

SQLITE WITH SWIFT