2016-12-13 10 views
0

私の目的では〜/ Library/Preferencesにあるplistから値を読み取る必要があります。目的の別のplistファイルから値を読み込みます-c

これをどのように達成する必要がありますか?このことにより、

+0

としてフルのplistを取得し、それは辞書やトップレベルのアレイが、 'dictionaryWithContentsOfFileかどうによって異なります'や 'arrayWithContentsOfFile:'動作するはずです。 – Larme

答えて

0
NSString *path =[NSHomeDirectory() stringByAppendingString:@"/Library/Preferences"]; 
NSDictionary *dict =[NSDictionary dictionaryWithContentsOfFile:[[path stringByAppendingPathComponent:@"filename"] stringByAppendingPathExtension:@"plist"]]; 

あなたは辞書

関連する問題