hii i am working on a sqlite based application in which there is a field at index 2 in the sqlite database in which i am not saving any data but when i run that database on firefox i saw that the index 2 had a value -2147483648, and when i am trying to add a new cell in my subview by:
return [appDelegate.items count]+1;
i am getting this error-
Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)'
the variable at index 2 is of decimal type:-
NSInteger n = i.need; sqlite3_bind_int(updStmt, 2, n);
is the default value coming in index 2 has to do anything with the exception
if yes how i can correct it and if no then why is it happening
can plz someone help me with this