2015年5月10日 星期日

Rob53 To do List

今天練習to do list,加入左邊滑出刪除的功能,但是所謂的記憶前次資料,影片中不太清楚,要再爬文補充了!

另,應該還可以壓入點壓拖曳,調整列的位置等功能!

對了!第一次看見箭頭@@?

>>
All of this information is rolled up into the function’s definition, which is prefixed with the func keyword. You indicate the function’s return type with the return arrow -> (a hyphen followed by a right angle bracket), which is followed by the name of the type to return.
函式的定義就是由這些資訊組合的,其中func是定義函式的關鍵字。函式的回傳型別則是透過"箭頭"來表達-> (一個連字號和右箭頭的組合),在箭頭後面填的是回傳值的型別定義。
出處:http://mikimoto.gitbooks.io/the-swift-programming-language-zh-tw/content/book/206_Functions.html

對應 Rob Swift 53

以下為程式碼:

沒有留言:

張貼留言

歡迎網友的交流與分享,謝謝。