在Apple Developer论坛上未能找到对此问题的准确回复.
与其他Apple开发者一样,我将升级我们的应用以支持iOS6设备.我已经下载了支持iOS6 SDK的XCode 4.5.
我知道我无法使用此XCode版本将我的应用程序版本提交到应用商店,但是:
如果我重新编译和使用的6.0部署目标建立一个应用程序,并解决所有已知的问题,例如不赞成的方法等,当苹果发布的GM iOS6的,将任何构建编译和iOS5的设备的工作呢?
我应该只提交部署目标为5.0的应用程序,还是那些无法在iOS6中运行的应用程序?
(困惑).
我对iPhone编程比较陌生,所以如果这看起来很简单,我会道歉.我在我的表(FLOAT类型)中有纬度/位置列,我试图从我的SQLite数据库中检索.
我可以检索基于字符/文本的数据库列,但不知道如何检索我的浮点值.我应该使用NSString或其他东西格式化属性吗?我希望在CLLocationDistance的下游使用浮点值.
// the array of locations that we will create
NSMutableArray *locations = [[[NSMutableArray alloc] init] autorelease];
const char *sql = "SELECT locations.name, \
locations.address, \
locations.city, \
locations.state, \
locations.phone, \
locations.zip, \
locations.latitude, \
locations.longitude \
FROM locations \
WHERE category = ?1";
// the sqlite statement object that will hold our result set
sqlite3_stmt *statement;
// prepare the statement to compile the SQL query into byte-code
int sqlResult = sqlite3_prepare_v2(database, sql, -1, &statement, NULL);
// reset …Run Code Online (Sandbox Code Playgroud)