既存の iOS5 シミュレーターを更新しようとしてplist
いますが、惨めに失敗します。
plist を見つけて既存の情報を取得し、配列を更新しますが、ファイルには書き込みません。
誰にでもアイデアはありますか?
NSString *path = [[NSBundle mainBundle] pathForResource:@"content_iPhone" ofType:@"plist"];
NSMutableArray *plist = [[NSMutableArray arrayWithContentsOfFile:path] mutableCopy];
// For testing purpose, get an object from the Array and add the object to array
newObject = [plist objectAtIndex:1];
[plist addObject:newObject];
[plist writeToFile:path atomically:YES];