i define an observed property, and use observe(, until: , changeHandler: _) to get value changed callback,
most of time it works fine, but in iOS 10.3.3, i receive a crash log!
crash description: " *** was deallocated while key value observers were still registered with it";
i declare property like this
class Person {
@objc dynamic var age: Int = 18
}
i define an observed property, and use observe(, until: , changeHandler: _) to get value changed callback, most of time it works fine, but in iOS 10.3.3, i receive a crash log! crash description: " *** was deallocated while key value observers were still registered with it";
i declare property like this class Person { @objc dynamic var age: Int = 18 }