Sqlite ライブラリを実行すると、BOOL 値が 'YES' ではなく '\x06' と表示されます。4 ~ 5 ステップ後、BOOl 値は '\0' になります。この BOOL 値の問題は何ですか?
BOOL success;//success value is '\x06'
NSLog(@"success:%c",success);
//If the database is present then quit.
if(success)
{
[self OpenDB:databasePath];
return;
}
//the database does not exists, so we will copy it to the users document directory]
//Copy the database file to the users document directory.
success = [FileManager copyItemAtPath:dbPath toPath:databasePath error:&error];// this place success value is '\0'
//If the above operation is not a success then display a message.
//Error message can be seen in the debugger's console window.
if(success)//
NSAssert1(0, @"Failed to copy the database. Error: %@.", [error localizedDescription]);
[self OpenDB:databasePath];
Am checking success only....
NSLOG 出力は成功です: