-(void)login{
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"login" ofType:@"plist"];
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
[plistDict setObject:@"si" forKey:@"stato"];
[plistDict writeToFile:path atomically: YES];
}
iOS シミュレータでは plist は正しく記述されていますが、iPhone で .plist を記述しようとすると、うまくいきません。間違った .plist パスが原因だと思います。iOS デバイスは別のパスを使用しますか?