- (IBAction)EnterButtonPressed:(id)sender {
Sqlite *sqlite = [[Sqlite alloc] init];
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"test.sqlite"];
if (![sqlite open:writableDBPath])
return;
NSArray *query = [sqlite executeQuery:@"SELECT AccessCode FROM UserAccess"];
NSLog(@"%@",query);
I am getting the output as : {
(
AccessCode=abcd;
)
}
Where as in I want it as : abcd
I am using the wrapper from : http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/
Please help .