Thanks for help, but I think I do something wrong.
Now I have code like this:
Code:
NSString *fileDirectory;
fileDirectory = [[[NSBundle mainBundle] pathForResource:@"Datas" ofType:@"plist"] retain];
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:fileDirectory];
NSMutableDictionary *plistDictName = [plistDict objectForKey:@"Fruit"];
[plistDictName setValue:@"Apple" forKey:@"fruit1"];
But it doesn't work. Then I created a new dict in the Plist file "Datas.plist" with the name "Fruit" but that does not work as well. My "Datas.plist" file looks like this now:
Code:
<dict>
<key>Fruit</key>
<dict>
<key>fruit1</key>
<string></string>
</dict>
</dict>
Nothing happens when I click the button in my application. The string of the key "fruit1" keeps empty.
What do I wrong?