I am a newbie here. I am trying to generate UUIDs using the following code..
- (NSString *)GetUUID
{
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
//CFUUIDBytes number = CFUUIDGetUUIDBytes (theUUID);
DLog(@"Howwww :%@", theUUID);
CFRelease(theUUID);
return [(NSString *)string autorelease];
}
I am getting the result in a string as..
NSString *result = [self GetUUID];
Now the problem is I am unable to store it inside my sqlite database. I am trying to store it in a VARCHAR
column using the statement
sqlite3_bind_text(compiledStatement, 10, [_idNumber UTF8String], -1, SQLITE_TRANSIENT);
Please can anyone help me out here. Thanks..