我有一个在 Flash Builder for iOS 平台中空中制作的应用程序
我已经编译了一个版本并将其安装在我的 iPhone 上,该应用程序与数据库通信,但它不会在数据库中写入/更新。可能是什么问题?设备的权限还是数据库的路径?
现在谢谢。
代码:
private var dbFile : File;
private var dbPath : String = "SAG.sqlite"; //name of database
private function setaAPP():void{
if(app == 'ANDROID'){
dbFile = new File('/mnt/sdcard/SAG/' + dbPath); // to ANDROID
}else if(app == 'DESKTOP'){
//app == DESKTOP
dbFile = File.applicationDirectory.resolvePath(dbPath); // to DESKTOP
}else if(app == 'DEBUG'){
//only to debug in Android
dbFile = File.applicationDirectory.resolvePath(dbPath); // to DEBUG in device
}else if(app == 'IOS'){
//app == IOS
dbFile = File.applicationStorageDirectory.resolvePath(dbPath); // to iOS
}
}