Terry CKSwift 開發備忘錄 切換release, debug configuation打開 project build settings 然後透過搜尋在 Swift compiler 中找到 custom flags,裡的 Other Swift FlagsAug 19, 20171Aug 19, 20171
Terry CKAutolayout 小技巧每次在創造試圖並在螢幕加入subView寫定位錨點時,每行限制條件(constraint)後面都得 isActive = true,否則限制條件就無法生效,如下方Aug 8, 2017Aug 8, 2017
Terry CK— -Retain Cycle魔鬼藏在細節裡 今天重新打磨過去覺得自己很難理解的概念 Retain Cycle Retain cycle 是iOS開發多數人曾面臨的狀況,主要來自call by reference時自動參考計數ARC的操作盲區,Swift…Aug 1, 2017Aug 1, 2017
Terry CKAutoClosurewhen closure as a parameter for a function, in a traditional way, we must using { } to an closure we want call, but another way by using…Jul 24, 2017Jul 24, 2017
Terry CKSwift Closure retain cycleretain cycle 發生在 reference type中,如class, closure, 因為物件互為強參考會造成記憶體無法釋放到最後可能致使App崩潰Jul 18, 2017Jul 18, 2017