Ik ben op zoek naar een iPhone app te voltooien. En daarom heb ik nodig om een database te halen uit MySQL naar SQLite. In dit geval ik heb wel wat code zoals bellow-
MCPConnection *theConnec;
MCPResult *theRes;
//initialize connection string vars
NSString *dbURL = @XXXXXX;
NSString *userName = @XXXXXX;
NSString *pass = @XXXXXX;
//open connection to database
theConnec = [theConnec initToHost:dbURL withLogin:userName password:pass usingPort:3306];
//NSLog(@The connection to database was successfull);
[theConnec selectDB:@XXXXXX];
//{
// NSLog(@Database found);
//}
//else
//{
// NSLog(@Database not found);
//}
theRes = [theConnec queryString:@select * from seahawk_tag];
//get the number of rows
NSInteger numberOfRows = [theRes numofRows];
NSLog(@Query of MySQL Database %@, numberOfRows);
return NSApplicationMain(argc, (const char **) argv);
[theConnec release];
Maar deze code niet goed werkt. Hier ook vermelden dat ik een aantal kader zoals cocoa.framework, cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok hebben gebruikt. en uiteindelijk krijg ik een fout msg dat CIColer.h ontbreekt.
vrienden, als u weet de oplossing of als u een andere code dan pls help me













