plistにいくつかの設定がありますが、アプリを強制終了すると、そこに保存されているすべてのデータが失われます。
これは私が使用しているコードです:
.h
@property (retain, nonatomic) NSString *plistFilePath;
-(IBAction)setHomepage:(id)sender;
.m
@syntehzise plistFilePath;
-(IBAction)setHomepage:(id)sender{
plistFilePath = [NSString stringWithString:[[NSBundle mainBundle] pathForResource:@"settings" ofType:@"plist"]];
    NSMutableDictionary *data= [[NSMutableDictionary alloc] initWithContentsOfFile:plistFilePath];
    [data setObject:@"http://www.google.com" forKey:@"Homepage"];
    [data writeToFile:plistFilePath atomically:YES];
    [data release];  
}
私は何か間違ったことをしていますか?別のクラスまたは別のメソッドを使用する必要がありますか?なぜ情報をうまく保存するのかわからないので助けてください。しかし、アプリを終了すると情報が失われます。