从swift 3中的coredata获取数据

时间:2016-10-17 07:04:32

标签: ios core-data swift3

当我从coredata获取数据时,而不是结果[<Swift3.Login: 0x6080002a38a0> (entity: Login; id: 0xd000000000040000 <x-coredata://9AF74A1C-CF0C-4864-8402-08D3C5BFAED0/Login/p1> ; data: <fault>)]

 var request: NSFetchRequest<Login>
    request = Login.fetchRequest()
    request = NSFetchRequest(entityName: "Login")

    do {
        let results = try context.fetch(request)
        print("Results : \(results)")
    } catch {
        print("Error")
    }

如何从coredata获取数据,任何人都可以帮助我吗?

0 个答案:

没有答案