我是这里的新手。我正在尝试使用以下代码生成 UUID ..
- (NSString *)GetUUID
{
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
//CFUUIDBytes number = CFUUIDGetUUIDBytes (theUUID);
DLog(@"Howwww :%@", theUUID);
CFRelease(theUUID);
return [(NSString *)string autorelease];
}
我在字符串中得到结果为..
NSString *result = [self GetUUID];
现在的问题是我无法将它存储在我的 sqlite 数据库中。我正在尝试VARCHAR
使用语句将其存储在列中
sqlite3_bind_text(compiledStatement, 10, [_idNumber UTF8String], -1, SQLITE_TRANSIENT);
请任何人都可以在这里帮助我。谢谢..