gpt4 book ai didi

objective-c - 将特定文件从一个路径复制到另一个路径

转载 作者:行者123 更新时间:2023-11-29 04:48:23 25 4
gpt4 key购买 nike

大家好,我正在尝试创建此调整,以便每次打开特定应用程序时将文件从一个位置复制到另一个位置。这是否正确使用。我对此仍然很陌生,但是尝试应该放置什么命令才能在每次打开应用程序时运行它。

- (BOOL)fileManager:(NSFileManager *)fileManager 
shouldCopyItemAtPath:(NSString *)srcPath *path/to/where/file/is
toPath:(NSString *)dstPath *where/i/want/it/copied/to

最佳答案

如果您希望每次打开应用程序时都运行它,则可以从应用程序委托(delegate)中的 application:didFinishLaunchingWithOptions: 调用它。

关于objective-c - 将特定文件从一个路径复制到另一个路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9268583/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com