Reputation: 1
EXC_BAD_ACCESS occurs when I access (read or rewrite) property of class instance.
class MyUIImageView:UIImageView {
required init?(coder aDecoder: NSCoder) {
fatalError()
}
var hand: String = ""
}
@IBOutlet weak var myInstance: MyUIImageView!
func rewrite() {
...
myInstance.hand = "..." // Error!
}
func read() {
...
var tmp: String = myInstance.hand // Error!
}
Do you know how to fix this error?
Unknown class MyUIImageView in Interface Builder
was found in log, and Module field of Custom Class is "None".
Upvotes: 0
Views: 88