ios应用程序的应用程序中哪里可以找到NSBundle?

ios应用程序的应用程序中哪里可以找到NSBundle?,ios,iphone,debugging,mobile,ios8,Ios,Iphone,Debugging,Mobile,Ios8,我正在运行一个应用程序的模板。我希望能够更改NSBundle的内容,其中包括名称列表。我怎样才能从这个来源找到答案 让path=NSBundle.mainBundle().pathsForResourcesOfType( “png”,目录:nil)as![字符串] // get image filenames from paths for path in paths { if !path.lastPathComponent.hasPrefix("AppIcon")

我正在运行一个应用程序的模板。我希望能够更改NSBundle的内容,其中包括名称列表。我怎样才能从这个来源找到答案

让path=NSBundle.mainBundle().pathsForResourcesOfType( “png”,目录:nil)as![字符串]

    // get image filenames from paths
    for path in paths {
        if !path.lastPathComponent.hasPrefix("AppIcon") {
            allCountries.append(path.lastPathComponent)
        }
    }
//try this code
NSURL *rtfUrl = [[NSBundle mainBundle] URLForResource:@"paylines" withExtension:@".txt"];