let person = Person()
person.name = "zhangzhe"
person.age = 25
print(self.home)
do {
try NSKeyedArchiver.archivedData(withRootObject: person, requiringSecureCoding: false)
} catch {
print(error)
}
I want to set the path, so that i can find it again. But i cann't know what to do .. archiveRootObject(_ rootObject: Any, toFile path: String) the method is deprecated in iOS12