Jeg prøver å fullføre en iPhone app. Og for dette jeg trenger å hente en database fra MySQL til SQLite. For dette tilfellet jeg brukte noen kode som 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];
Men denne koden ikke fungerer som det skal. Her også nevne at jeg har brukt noen rammeverk som cocoa.framework, cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok. og til slutt får jeg en feil melding som mangler CIColer.h.
freinds, hvis u vet løsningen, eller hvis u har en annen kode så pls hjelpe meg













