开发者

Resource Folder Xcode 4, how to delete files from package

  1. I am using Xcode 4. I have copied several images to main folder, I have built project, next I have deleted all images. When I list resources path by NSLog, I can see that there are still in this package. I've deleted build f开发者_如何学Goolder, clean etc. What should I do to delete this files from my package

  2. And second question. Why when I copy an entire folder, and list files and directories by:

    NSFileManager *fm = [[NSFileManager alloc] init];
    NSString *string = [[NSBundle mainBundle]resourcePath];
    for(NSString *name in [fm contentsOfDirectoryAtPath:string error:nil])
    {
    NSLog(@"%@", name);
    }
    

In console a can only see files from this folder.


Have you deleted the project from simulator ? You can do it in the Simulator app or deleting the project folder at ~/Library/Application\ Support/iPhone\ Simulator/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜