Hey I am using the http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/ wrapper .
My code is this :
- (IBAction)UpdateButtonPressed:(id)sender
{
Sqlite *sqlite = [[Sqlite alloc] init];
NSString *writableDBPath = [[NSBundle mainBundle]pathForResource:@"Money"ofType:@"sqlite"];
if (![sqlite open:writableDBPath])
return;
NSArray *query = [sqlite executeQuery:@"UPDATE UserAccess SET Answer ='Positano';"];
NSDictionary *dict = [query objectAtIndex:2];
NSString *itemValue = [dict objectForKey:@"Answer"];
NSLog(@"%@",itemValue);
}
Answer is the Column name , UserAccess the table name . the column is at 3rd place in the table
What am I doing wrong why is it crashing ???