Swift3 從入門到精通Day25:解析 XML與RSS Reader(1/2)

Alice
Alice
Jul 25, 2017 · 3 min read

日期:7/25(二)

XML是傳送資料的格式

很像HTML

做RSS Reader先用假資料連結

prototype cell改成1 然後點選側邊Table view後在identifier命名cell

然後加上navigation bar設定auto layout

按control之後選show

在第三個Table View Controller加上Web View

命名segue為moreinfo

但回復上一頁會有色塊在剛剛按下的地方想消除

這樣就不會有色塊了

利用假資料來測試之後再接網路資料

加上一個Activity Indicator 在最後的tableView 設定auto layout再將Hides When Stopped打勾
ViewController的程式碼
webViewController的程式碼
Info的設定更改 才能load不是apple的網址
but myActivityIndicator好像沒有動欸不知道為什麼XD

假資料試做成功拉!接下來要真的接網路資料了。

Daily Swift

Alice

Written by

Alice

Swift addict, Taipei|wl02722691@gmail.com

Daily Swift

Hi, I’m Alice. :-]

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade