[問題] 有關swift流程處理

作者: sheng0208 (盧比歐)   2017-06-13 14:58:20
請問swift 有沒有像android的handler那種功能??
主要是用來在使用http get取得資料解析後顯示在TableView上
作者: rayshiuan (子胖)   2017-06-13 15:06:00
比較接近你想要的 應該是 Block
作者: xpop777 (Archie)   2017-06-13 15:11:00
一樣的概念吧,而且命名也會取叫 handler 之類的
作者: sinss (星星)   2017-06-13 21:04:00
closure 是這個吧…
作者: rayshiuan (子胖)   2017-06-14 01:06:00
在 Swift 是 closure 沒錯 XD

Links booklink

Contact Us: admin [ a t ] ucptt.com