每當我想從我使用下面的代碼plist文件中獲取數據獲取數據:從信息的plist
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"FILE_NAME" ofType:@"plist"];
NSDictionary *plistData = [NSDictionary dictionaryWithContentsOfFile:filePath];
但現在我想從信息plist中讀取數據,並且文件路徑零。有沒有不同的方式從Info plist獲取數據?
謝謝,這解決了我的問題。 – Darren 2012-03-21 13:27:35
[iOS:在代碼中訪問app-info.plist變量]的可能重複(http://stackoverflow.com/questions/9530075/ios-access-app-info-plist-variables-in-code) – thegrinner 2016-08-17 12:46:56