1
我正在開發一個其他開發人員創建的iOS項目,我在運行此應用程序時遇到問題。現在,在某些時候,我有下面的代碼,它返回nil
並有更多問題,來:NSBundle pathForRes返回nil?
NSString *staticLibraryBundlePath = [[NSBundle mainBundle] pathForResource:@"SRVRTrackingResources" ofType:@"bundle"];
我不知道這是什麼實際上是尋找,我將發佈該項目的文件夾的結構:
我不知道哪個文件,它尋找的.plist
一個?
有什麼想法?
檢查這個https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference。 HTML#// apple_ref/OCC/instm /一個NSBundle/pathForResource:ofType: – 2014-09-01 10:36:37