【发布时间】:2020-05-21 18:41:23
【问题描述】:
在 iOS 中,我如何访问部署在“\StartUp\Documents\”中的文件?它看起来像是部署资源的路径,但我不知道如何从正在运行的应用程序中找到路径。我试试:
TPath.Combine(TPath.GetHomePath, 'StartUp/Documents/mypict.png')
没有任何成功:(
【问题讨论】:
-
确保
System.StartupCopy单元位于主项目文件中uses子句的顶部。然后从你访问文件的路径中删除StartUp:TPath.Combine(TPath.GetHomePath, 'Documents/mypict.png')见Delphi XE4 with iOS addon - how to embed files -
@RemyLebeau 嗯,所以现在我有另一个问题:System.StartUpCopy.pas 的目的是什么?我在这里打开一个新问题:stackoverflow.com/questions/61942454/…
标签: ios delphi firemonkey