我从 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];
}