Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swift warm up NSSpecialValue
Search
Johnlin
August 07, 2018
77
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift warm up NSSpecialValue
Johnlin
August 07, 2018
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
350
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
440
Ruby 型別檢查工具簡介
johnlinvc
0
650
Swift Actor 實作探索
johnlinvc
0
220
用 mruby 來寫跨平台工具
johnlinvc
0
140
Actor model 簡介
johnlinvc
0
260
一起玩 Helm 3
johnlinvc
1
170
為什麼 App 卡卡的
johnlinvc
2
1.3k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
280
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
550
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Mind Mapping
helmedeiros
1
370
How to make the Groovebox
asonas
2
2.5k
The Language of Interfaces
destraynor
162
27k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Transcript
Swift ఔࣜখ NSSpecialValue John Lin
NSValue • ओཁ༗ၷݸޭೳ • ࡏ objc ཫṶଘ C తݪੜྨผ •
NSCoder ߹࡞ɼ݅Ꮣࢿྉɻ
ṶଘC తݪੜྨผ • ᙛ objc త NSArray ೳଘ NSObject త
Subclassɼෆೳଘ Int, Bool ೭ྨత • ༻ NSValue แىိ೭ޙबՄҎଘࡏNSArray ཫ • ՄҎ༻ intValue ೭ྨత C తࢿྉ፤ճိ
NSCoding • ࡏ ݅ࢿྉؒ࡞ • See Zonble's book • https://github.com/zonble/kkbox-ios-dev/tree/
master/nscoding • https://zonble.gitbooks.io/kkbox-ios-dev/content/ nscoding/index.html
NSCoding • ճၚ Any? త decoder ቮៃ deprecated ྃɼ༻ Generic
൛
ࢿྉNSValue
NSSpecialValue • NSValue త Subclass • NSPoint ೭ྨతੋ
NSSpecialValue subclass
NSPoint(CGPoint) decode
NSRange decode
NSConcreteValue • ੋ NSValue త subclass • แؚ ଖଞେ෦త objc
㚎ݐ type ɼ૾ੋ NSNumber
NSConcreteValue
NSNumber Decode
Special vs Contrete • concrete ੋޠݴ㚎ݐత • Special ੋ Foundation
త • ෆաFoundation େ෦ෆ Special • NSSpecialValueେ֓ੋաڈతҨಟ㠧
݁ • ؐੋ༻ Codable ྃ • ༗ṧෆಘቮ࠶༻ NSCoding
Q&A
፮ᐔػ • http://slot.miario.com/machines/150067