swift girls 6th_teaching_meeting20160926

29
SWIFT GIRLS (IOS) PART6 2016.09.26 by 褷ො Firebase x ChatRoom 最後⼤進擊!

Upload: -

Post on 12-Apr-2017

217 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Swift girls 6th_teaching_meeting20160926

SWIF T G IRLS ( IOS)PART6

2016 . 0 9 . 2 6

by

Firebase x ChatRoom 最後⼤進擊!

Page 2: Swift girls 6th_teaching_meeting20160926

SWIF T G IRLS ( IOS)

Swift Girls aims to give tools for girls and women to build their ideas.

ios Swift

Swift ” “  

by

2016 . 0 9 . 2 6

Page 3: Swift girls 6th_teaching_meeting20160926

SWIF T G IRLS ( IOS)

 

( !?XD)

by

debug debug :)

:)

2016 . 0 9 . 2 6

Page 4: Swift girls 6th_teaching_meeting20160926

SWIF T G IRLS ( IOS) -PART6

by

1. Github( ), stackOverFlow 2. google 3.

Github: https://github.com/Avonee/swift-girls-meetig_teaching

2016 . 0 9 . 2 6

Page 5: Swift girls 6th_teaching_meeting20160926

SWIF T G IRLS ( IOS) -PART6

by

F B L I N E

2016 . 0 9 . 2 6

Page 6: Swift girls 6th_teaching_meeting20160926

改變世界

by

2016 . 0 9 . 2 6

Page 7: Swift girls 6th_teaching_meeting20160926

START ! ! !

by

2016 . 0 9 . 2 6

Page 8: Swift girls 6th_teaching_meeting20160926

by

資料庫(Databases)• Tables

Records RowsFields Columns

• 資料的儲存架構又分為多種類型, 較常⾒的有 4 種:●階層式(Hierarchical Database ) ●網狀式(Network Database ) ●關聯式(Relational Database ) ●物件導向式(Object-Oriented Database )

2016 . 0 9 . 2 6

Page 9: Swift girls 6th_teaching_meeting20160926

by

關聯式(Relational Database )• 2 維的矩陣來儲存資料—(將資料儲存在表格的欄、列之中)

• 可從⼀個資料表中的欄位, 透過資料表的關聯, ⽽找到另⼀個資料表中的資料。

• ⽬前市場上是以關聯式資料庫使⽤最廣泛。 Microsoft SQL Server、MySQL、PostgreSQL、Access..., 都是屬於關聯式資料庫管理系統 (Relational DBMS, 縮寫為RDBMS (Relational Database Management System ))。

2016 . 0 9 . 2 6

Page 10: Swift girls 6th_teaching_meeting20160926

by

Firebase Realtime Database

Firebase Realtime Database NoSQL

SQL

2 H A S H TA B L E 1 K E Y ) 1 ( VA L U E

K E Y

p.s. SQL

2016 . 0 9 . 2 6

Page 11: Swift girls 6th_teaching_meeting20160926

by

Firebase Realtime Database—

NoSQL/Key-Value — …

2016 . 0 9 . 2 6

Page 12: Swift girls 6th_teaching_meeting20160926

by

FirebaseDocument — Realtime Database

https://firebase.google.com/docs/database/ios/start

2016 . 0 9 . 2 6

Page 13: Swift girls 6th_teaching_meeting20160926

by

實作GO !

2016 . 0 9 . 2 6

Page 14: Swift girls 6th_teaching_meeting20160926

by

https://firebase.google.com/

Firebase 註冊登⼊&Get Start

2016 . 0 9 . 2 6

Page 15: Swift girls 6th_teaching_meeting20160926

by

Firebase 建⽴新專案

2016 . 0 9 . 2 6

Page 16: Swift girls 6th_teaching_meeting20160926

by

Firebase 建⽴新專案

2016 . 0 9 . 2 6

Page 17: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定 2016 . 0 9 . 2 6

Page 18: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定 2016 . 0 9 . 2 6

Page 19: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定 2016 . 0 9 . 2 6

Page 20: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定

$ cd your-project-directory $ pod init $ open -a Xcode Podfile

[ ]— cocoapods

cocoa pods  sudo gem install cocoapods

1.2.3.

4.5.

(command+s)

2016 . 0 9 . 2 6

Page 21: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定 …

2016 . 0 9 . 2 6

Page 22: Swift girls 6th_teaching_meeting20160926

by

Firebase 加⼊到iOS設定 2016 . 0 9 . 2 6

Page 23: Swift girls 6th_teaching_meeting20160926

by

Firebase 允許權限

true! true!

2016 . 0 9 . 2 6

Page 24: Swift girls 6th_teaching_meeting20160926

by

StoryBoard Layout

Text View

2016 . 0 9 . 2 6

Page 25: Swift girls 6th_teaching_meeting20160926

by

Install Firebase Database

• import

podFile , install

• class 內宣告databaseReference

2016 . 0 9 . 2 6

Page 26: Swift girls 6th_teaching_meeting20160926

by

Database .Write (寫⼊) 2016 . 0 9 . 2 6

Page 27: Swift girls 6th_teaching_meeting20160926

by

Database .Read (讀取) Retrieve Data

ViewDidLoad

2016 . 0 9 . 2 6

Page 28: Swift girls 6th_teaching_meeting20160926

by

完成了!!!

Home Work ,

Try ~~~ :D

2016 . 0 9 . 2 6

Page 29: Swift girls 6th_teaching_meeting20160926

Q&A

by

Swift girls (iOS) https://github.com/Avonee/swift-girls-meetig_teaching

2016 . 0 8 . 2 9