Entity is not key value coding-compliant for the key

前端 未结 6 1489
粉色の甜心
粉色の甜心 2020-12-31 20:16
    if (win) {
    // Game was won, set completed in puzzle and time
    // Calculate seconds taken
    int timeTaken = (int)([NSDate timeIntervalSinceReferenceDate]         


        
6条回答
  •  生来不讨喜
    2020-12-31 20:43

    If parsing JSON into a managed object, be sure you're using the coreDataPropertyName property rather than the json-key-name key from JSON. Easy to mix up when they're named so similarly.

    This error was driving me nuts, and all because I was using image-url rather than imageURL.

提交回复
热议问题