[英]How to copy items from Documents directory to .app directory in iPhone App?
[英]How to copy contents of a directory into a another directory programmatically in an iPhone app
我有2個通過編程方式創建的目錄,例如DIR1&DIR2和DIR1現在有一些XML文件,我需要復制DIR的內容! 進入DIR2而不給出目錄名稱
這可能嗎?
您可以使用- (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error
方法進行復制。 請參考此鏈接。 它會幫助你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.