Entity is not key value coding-compliant for the key

前端 未结 6 1492
粉色の甜心
粉色の甜心 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 21:02

    If you added attribute bestTime to the model at the later time, you might have forgotten to put declaration and implementation for them in the connected Managed Object Class.

    Try convenience actions provided in Design -> Data Model -> Copy Objective-C ... Method Declarations/Implementations to Clipboard (when editing your Model file).

提交回复
热议问题