Slide 56
Slide 56 text
ͪͳΈʹɺ
͜ͷselfΛऑࢀরΩϟϓνϟ͠Α͏ͱ͢Δͱ…
final class ViewController: UIViewController {
let functionTypePropertyUsingSelf = { [weak self] in
print("function-type property using self", self)
}
}
ऑࢀরʹͰ͖Δͷɺ
classܕɺ͋Δ͍classܕઐ༻ͷϓϩτίϧ͚ͩɻ
self ViewController ܕͷΠϯελϯεͰͳ͍ͷͰɺ
ऑࢀরΩϟϓνϟෆՄೳͬͯ͜ͱͰ͢Ͷɻ
56