0

環境設定の同期直後にメモリ警告が表示されるのはなぜですか? ありがとう。

- (void)fbDidLogin {
    NSLog(@"Did Log In");
    NSLog(@"Access Token is %@", shared.accessToken );
    NSLog(@"Expiration Date is %@", shared.expirationDate );

    NSString *accessToken = shared.accessToken;
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    NSString *expirationDate =[dateFormatter stringFromDate:shared.expirationDate ];

    **NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
    [prefs setObject:accessToken forKey:@"facebook-accessToken"];
    [prefs setObject:expirationDate forKey:@"facebook-expirationDate"];
    [prefs synchronize];**

    [[NSNotificationCenter defaultCenter] postNotificationName:@"FBDidLoginCalled" object:nil];
}
4

0 に答える 0