let person = Person()
person.name = "zhangzhe"
person.age = 25
print(self.home)
do {
try NSKeyedArchiver.archivedData(withRootObject: person, requiringSecureCoding: false)
} catch {
print(error)
}
我想设置路径,以便再次找到它。 但是我不知道该怎么办.. archiveRootObject(_ rootObject:任何,toFile路径:字符串)该方法在iOS12中已弃用
答案 0 :(得分:1)
这可能对iOS12有帮助
SELECT ROUND(33.2330, 1) AS RoundValue1,
ROUND(51.6648, 1) AS RoundValue2;
RoundValue1 RoundValue2
----------- -----------
33.2 51.7