Je suis en train de terminer une application iPhone. Et pour cela, je dois chercher une base de données de MySQL à SQLite. Pour ce cas, je n'utilise un code comme 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];
Mais ce code ne fonctionne pas correctement. Ici aussi mentionner que je l'ai utilisé un peu comme cadre cocoa.framework, cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok. et enfin je reçois un msg d'erreur CIColer.h est manquante.
freinds, si tu sais la solution ou si u ont un autre code alors pls me aider













