Swift 的 Closure Capture List - 公司內分享會

Swift 的 Closure Capture List - 公司內分享會

481a04548eda340e5cf166b487792ee5?s=128

Li-Hsuan Chen

August 11, 2016
Tweet

Transcript

  1. Closure Capture List  ௠㦐ל!ޕἢ෼ڗ။

  2. ARC ୞။ release retain count ੋ 0 త෺݅

  3. Memory Leak ᙛҰݸ෺݅త੒һᏓᏐ҃ੋ੒һവᏐ ༗ࡏDMPTVSFཫ໘ඃݺڣ౸ ഝݸ෺݅ब။ඃDMPTVSFDBQUVSFىိ ಉ࣌ɼഝݸ෺݅తSFUBJODPVOU။ 

  4. Demo

  5. Closure Capture List { [unowned self] in // statements }

  6. Demo

  7. ጯ༻ ݺڣXFCTFSWJDF"1* ಈᙘ ౳౳ʜ

  8. Q & A