Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift warm up NSSpecialValue
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Johnlin
August 07, 2018
66
0
Share
Swift warm up NSSpecialValue
Johnlin
August 07, 2018
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
280
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
360
Ruby 型別檢查工具簡介
johnlinvc
0
600
Swift Actor 實作探索
johnlinvc
0
200
用 mruby 來寫跨平台工具
johnlinvc
0
120
Actor model 簡介
johnlinvc
0
230
一起玩 Helm 3
johnlinvc
1
160
為什麼 App 卡卡的
johnlinvc
2
1.3k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
250
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
830
Automating Front-end Workflow
addyosmani
1370
210k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
190
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
140
For a Future-Friendly Web
brad_frost
183
10k
Docker and Python
trallard
47
3.9k
How to build a perfect <img>
jonoalderson
1
5.6k
Building Applications with DynamoDB
mza
96
7.1k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
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