Entity is not key value coding-compliant for the key

前端 未结 6 1491
粉色の甜心
粉色の甜心 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:51

    That managed object doesn't have an attribute named “bestTime”. According to the exception message, it definitely is a Puzzle, so you haven't declared an attribute named bestTime in your model (or you misspelled it or capitalized it differently).

提交回复
热议问题