-
Optional PropertyiOS/π μ΄μμ κΆκΈμ¦ 2020. 12. 2. 02:57
" μ΅μ λ μμ±μ κΈ°λ³Έ κ°μ μ€μ νμ§ μμ μ nil λ‘ μ΄κΈ°ν λλ€ "
import UIKit class Test: UIViewContorller { var updateTimer: Timer? @IBOutlet weak var updateButton: UIButton! //Implicitly Unwrapped Optional ... }
Test ν΄λμ€μ λ©€λ²μ default κ°μ΄ μμμλ
μ»΄νμΌ μλ¬κ° λ°μνμ§ μκ³ initializer κ° μλ μμ±λλ μ΄μ λ,
μ΅μ λ κ°μ κ²½μ° μλμΌλ‘ nil μ΄ κΈ°λ³Έ κ°μΌλ‘ μ΄κΈ°νλκΈ° λλ¬Έμ΄λ€.
IUO λ λ§μ°¬κ°μ§μ΄λ€.
λ.
'iOS > π μ΄μμ κΆκΈμ¦' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[Xcode] μ± λ²λ€ μ°ΎκΈ° (2) 2021.10.02 [iOS] does not implement methodSignatureForSelector: -- trouble ahead (0) 2021.05.24 iOS) `Scene-based` μ `Scene-support` μ μ°¨μ΄μ (0) 2021.02.02 IBDesignable Error - Failed to render (0) 2021.01.22 M1 MacBook git μ€μΉλ² (without Homebrew) (1) 2020.12.29