Snažím se dokončit aplikaci pro iPhone. A k tomu musím načíst databázi z MySQL do SQLite. V tomto případě já jsem použít nějaký kód, jako 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 tento kód nefunguje správně. Zde také zmínit, že jsem použil nějaký rámec, jako cocoa.framework, Cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok. a konečně i se chybová zpráva, která CIColer.h chybí.
freinds, pokud vím, u řešení, nebo je-li u mít jiný kód pak pls help me













