I have a JSON dictionary that contains what I will call an integer (in math), i.e. 1.
I would like to store this number in the master data attribute, which is NSInteger
. The following code issues a warning:
Incompatible pointer to an integer Initializing an NSInteger conversion with an expression of type 'id'
NSInteger insertID = jsonResults[@"insert_id"];
I have tried various combinations int
, NSNumber
etc. to no avail. Can anyone suggest the right way to do this?
user4038028
source
share