Staram się wypełnić aplikację iPhone. I za to muszę pobrać bazę danych z MySQL do SQLite. W tym przypadku użyłem kodu podobnego 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];
Ale ten kod nie działa prawidłowo. Tutaj również wspomnieć, że użyłem trochę ramy jak cocoa.framework, Cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok. i wreszcie ja dostać że CIColer.h brakuje msg błędzie.
przyjaciołom, jeśli u znać rozwiązanie lub jeśli u mieć inny kod następnie pls help me













