I want inherit one swift class from PAPreferences, but don't know how to deal with @dymamic
class MUSPreferences : PAPreferences
{
@dynamic var firstVersionInstalled:String
@dynamic var latestVersionInstalled:String
...
}
cause the init method in PAPreferences. will dynamic assign all value from NSUserDefault to the property, so I don't need to set them in the MUSPreferences's init(), but if I don't set them, xcode will report error "Property xxx not intiialized at super.init call", Do you have some solution to deal with this problem?
I want inherit one swift class from PAPreferences, but don't know how to deal with @dymamic
cause the init method in PAPreferences. will dynamic assign all value from NSUserDefault to the property, so I don't need to set them in the MUSPreferences's init(), but if I don't set them, xcode will report error "Property xxx not intiialized at super.init call", Do you have some solution to deal with this problem?