Skip to content

How to make PAPreferences support Swift? #6

@Fykec

Description

@Fykec

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions