I have a program that gets cookies. One param of this cookie is an NSNumber. So I save it to database as
sqlite3_bind_int(addStmt, 2, HEREisNSNUMBER);
Saving this value as:
cookieObj.created = [paramsDictionary valueForKey:@"Created"];
then I create and object of class, and get this parameter into NSNumber; after that, I have a wrong value. For example: In cookie I have a 329822675
after saving this changes to 79931776
. How can I correctly save that number?
Please try
sqlite3_bind_int(addStmt, 2, [HEREisNSNUMBER intValue]);