我需要将照片复制到此路径中.但如何得到它?
"iPhone模拟器/ 5.1 /应用程序/ 996C42CE-B8BF-4F1A-B16C-DBF194BD5A71/Documents /"
http://docs.phonegap.com/en/1.8.0/cordova_file_file.md.html#FileTransfer
我想将图像下载到我的app文档文件夹中.但我不知道那些文件的FullPath.
我有一个应用程序提交到Apple Store,它通过了.但我发现有一个错误会让应用程序崩溃.最后,我发现真正的问题是代码的快照有相反的结果.
码:
CGPoint now;
CGPoint old;
UIView *lastDot;
now = dotView.center;
if(lastDot){
//release version, will go here. then crashed.
old = lastDot.center;
}else{
//debug version, will go here. run ok.
}
Run Code Online (Sandbox Code Playgroud)
我声明了一个UIView指针,并用"if语句"检查它,
UIView*lastDot;
调试版本将lastDot视为nil,但发布版本认为不是null.
任何人都可以给我任何想法?谢谢.