關於 map & flatMap 把網路上的一些資源做重點整理
Reference :
Swift 燒腦體操:http://www.infoq.com/cn/articles/swift-brain-gym-map-and-flatmap
應用範例:http://blog.xebia.com/the-power-of-map-and-flatmap-of-swift-optionals/
訪問權限的大小依序為:
此次實作想做出以下效果:
最近要把一個專案從Swift 2.3轉到Swift 3.0,把遇到的一些 compile error 訊息整理如下:
1. 先利用Xcode提供的轉換工具:Edit/Convert/To Current Swift Syntax…把系統會自動轉換的,都轉到最新的語法
2. ‘NSLog’ is unavailable: Variadic function is unavailable in swift :
Codility — Iterations
(1) for-in loop
repeat some operations a given number of times, or repeat them for each element in some collection.
Presenter : Peter Pan
View Controller Transition, 多國語言
Autolayout