小编mea*_*lai的帖子

PhoneGap iOS,如何获取应用程序"Documents"文件夹的完整路径?

我需要将照片复制到此路径中.但如何得到它?

"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.

path documents cordova

13
推荐指数
1
解决办法
3万
查看次数

在iOS上,if()语句在发行版和调试版之间有不同的结果

我有一个应用程序提交到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.

任何人都可以给我任何想法?谢谢.

iphone pointers if-statement ios

-1
推荐指数
1
解决办法
111
查看次数

标签 统计

cordova ×1

documents ×1

if-statement ×1

ios ×1

iphone ×1

path ×1

pointers ×1