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 Study Singleton
Search
mcz9mm
July 03, 2017
78
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift Study Singleton
mcz9mm
July 03, 2017
More Decks by mcz9mm
See All by mcz9mm
自己満アプリから脱却するためにした UI改善とは
mcz9mm
1
1.2k
SwiftUI-List-Pagination
mcz9mm
2
2.4k
ARKit2.0でAppleが伝えたいアプリ体験を考える
mcz9mm
2
1.3k
ゆるく学ぶARKit
mcz9mm
3
1.6k
What’s New in ARKit2.0
mcz9mm
0
150
徳丸本 ログインフォーム
mcz9mm
0
140
arkit+animoji
mcz9mm
0
100
徳丸本8
mcz9mm
0
140
徳丸最終回
mcz9mm
0
100
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
Building the Perfect Custom Keyboard
takai
2
950
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
290
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
Being A Developer After 40
akosma
PRO
92
590k
Chasing Engaging Ingredients in Design
codingconduct
0
390
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Skip the Path - Find Your Career Trail
mkilby
1
280
Transcript
Swift Study Singleton
Singletonͬͯʁ
ͦͷΫϥεͷΠϯελϯε͕1ͭ ͔͠ੜ͞Εͳ͍͜ͱΛอূ͢Δ
σβΠϯύλʔϯͷ̍ͭ
• SingletonΫϥεɺstaticͳSingletonΫϥε ͷΠϯελϯεΛ1ͭ࣋ͭ
• initΛprivateʹ͢Δ͜ͱ
࡞ͬͯΈͨ
• SAVE • LOAD • ͜͜Ͱอଘͨ͠ͷ ผΫϥε͔Βݺͼग़͠Մೳ
ϝΠϯͱͳΔ෦
ͷઃఆ
None
ͷऔಘ
None
End