Facebookからのログアウトに問題があります。現在のユーザーをログアウトしてメイン ページに戻る必要がありますが、現在はメイン ページに戻りますが、closeAndClearTokenInformation を使用して既にクリアした空のフィールドで現在の画面に戻ります。誰でも助けてください。ありがとう。
- (IBAction)LogOutAction {
[appDelegate readPersonsFromDatabase:kPERSON_TYPE_OWNER withPersonName:@"" withPersonBirthday:NO];
if ([appDelegate.myIPPersonArray count] > 0) {
self.myIPPerson = [[IP_PERSON alloc] initWithInternalNum:@"1" personType:kPERSON_TYPE_OWNER personID:@"" personName:@"" personCompany:@"" personAddress1:@"" personAddress2:@"" personCity:@"" personState:@"" personPostcode:@"" personCountry:@"" personEmail:@"" personPhoto:@"" personDOB:@"" userDef1:@"" userDef2:@"" userDef3:@"" userDef4:@"" userDef5:@"" userDef6:@"" userDef7:0 userDef8:0 status:@"0"];
[self.myIPPerson setPersonCredit:@"0"];
[appDelegate insertOrUpdatePersonToDatabase:self.myIPPerson];
}
[FBSession.activeSession closeAndClearTokenInformation];
[self.navigationController popToRootViewControllerAnimated:YES];
}