Είμαι προσπαθεί να ολοκληρώσει ένα iPhone app. Και γι 'αυτό χρειάζομαι να φέρω μια βάση δεδομένων από MySQL σε SQLite. Για αυτή την περίπτωση εγώ είχα χρησιμοποιήσει κάποιο κώδικα, όπως 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];
Αλλά αυτός ο κωδικός δεν λειτουργεί σωστά. Εδώ να αναφέρω επίσης ότι έχω χρησιμοποιήσει κάποιο πλαίσιο, όπως cocoa.framework, cocos2d, openGLES.framework, openAL.framework, APPKit.framework, MCPKit.framework, Quartzcore.framewrok. και, τέλος, να πάρω ένα msg σφάλμα που λείπει CIColer.h.
freinds, αν u ξέρει τη λύση ή εάν u έχω ένα άλλο κωδικό, στη συνέχεια, pls να με βοηθήσει













