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
Optional 遇到的問題 - 公司內分享會
Search
Lihsuan Chen
August 18, 2016
Programming
160
0
Share
Optional 遇到的問題 - 公司內分享會
這週主題是專案上使用 Swift 的 optional 時所碰到的問題。
包含了使用 [unowned self] 以及 @IBOutlet 時碰到的問題與解決的方式。
Lihsuan Chen
August 18, 2016
More Decks by Lihsuan Chen
See All by Lihsuan Chen
iPlayground 2025 - 接⼿ 10年⼤雜燴:專案現代化與產品開發的挑戰
vc7
0
170
The UX thinking of PAY ID
vc7
2
500
From Onboarding to Value Delivering in iOS
vc7
0
300
Merciless Refactoring
vc7
0
820
Protocol 的實例、測試和心得
vc7
2
840
共有経済
vc7
0
200
.gitignore
vc7
1
120
Git Workshop 03
vc7
0
160
Git Workshop 02
vc7
0
140
Other Decks in Programming
See All in Programming
Back to the roots of date
jinroq
0
600
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
310
GitHubCopilotCLIをはじめよう.pdf
htkym
0
300
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
120
実践CRDT
tamadeveloper
0
610
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
250
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
280
JOAI2026 1st solution - heron0519 -
heron0519
0
160
Programming with a DJ Controller — not vibe coding
m_seki
3
700
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
24
16k
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
2
360
Featured
See All Featured
The Invisible Side of Design
smashingmag
303
52k
Git: the NoSQL Database
bkeepers
PRO
432
67k
From π to Pie charts
rasagy
0
180
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.2k
Typedesign – Prime Four
hannesfritz
42
3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
820
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How to Ace a Technical Interview
jacobian
281
24k
We Have a Design System, Now What?
morganepeng
55
8.1k
Transcript
遇到的問題 Optional 陳 澧萱 @ 午餐分享會 2016/08/18
目錄 • [unowned self] • @IBOutlet త !
[unowned self]
Crash TFMGඃᬶ์ޙ ࡏDMPTVSFཫݺڣTFMGDSBTI ʢᙛ൛ຊҎ্ʣ
解決方法 Ŏ አ[weak self] Ŏ 矑茐አguard letᴠ纠
@IBOutlet 的 !
@IBOutlet Ŏ 䨝ڊԪጱ碻秚牫 Ŏ viewDidLoad()ฎloadView()ԏ獮 Ŏ ౮㹓虋碍ಅࣁጱᇔկᤩ朰硯ധԧ @IBOutlet var messageLabel:
UILabel!
結語 Ŏ ဳLPSOLFLWO\XQZUDSSHGRSWLRQDO Ŏ 胼犋ᥝአ牧疰犋ᥝአ Ŏ ဳᇔկጱOLIHF\FOH牧犋ᥝॡፘמਥොጱ