Calculating the max value for a core data attribute - NSCFNumber error

前端 未结 3 1425
再見小時候
再見小時候 2020-12-16 15:23

I need to find out the maximum value of an attribute of a core data entity.

I\'m still firmly in the Cocoa learning curve, and this is a simple test app that I\'m us

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 15:50

    The issue was that this line is wrong:

    [fetch setResultType:NSDictionaryResultType];  
    

    The result type should have been NSManagedObjectResultType

    Regards

    Darren.

提交回复
热议问题