代码:
在AppConstant.h
#define FMESSAGE_ISDELETED @"isDeleted"
#define FMESSAGE_OBJECTID @"objectId"
在FObject.swift中
class FObject: NSObject {
init(path: String, subpath: String?) {
super.init()
pathX = path
subpathX = subpath
}
........
........
}
在Messages.swift中
let object = FObject(path: FMESSAGE_PATH, subpath: FUser.currentId())
object[FMESSAGE_OBJECTID] = dbmessage.objectId
object[FMESSAGE_ISDELETED] = true
问题:
在Message.swift中声明的对象是否变成字典或其他? 谢谢!