gpt4 book ai didi

ios - Twitter 登录问题 Parse.com iOS

转载 作者:行者123 更新时间:2023-11-29 01:15:58 25 4
gpt4 key购买 nike

我最近从我的 mac 中删除了所有多个重复文件,这搞乱了我的 xcode 项目。我必须再次导入所有 twitter 框架,并且必须删除 twitter 运行脚本才能使我的应用程序正常工作。在我搞砸之前,一切都运行良好。

现在每次我用 Twitter 登录时都会出现此错误TWTRLogInButton 是在没有设置completionBlock 的情况下创建的

我的代码完美运行:

- (IBAction)twlogin:(TWTRLogInButton *)sender {

[PFTwitterUtils logInWithBlock:^(PFUser *user, NSError *error) {
if (error) {
}
else {
PF_Twitter *twitter = [PFTwitterUtils twitter];
PFUser *user = [PFUser currentUser];
NSString *twitterScreenName = twitter.screenName;
[[PFUser currentUser] setObject:twitterScreenName forKey:@"username"];
[user saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error)
{
if (error)
{
UIAlertView *alertVeiw = [[UIAlertView alloc] initWithTitle:@"Sorry" message:[error.userInfo objectForKey:@"error"] delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
[alertVeiw show];
}

else {
[[PFInstallation currentInstallation] setObject:[PFUser currentUser].objectId forKey:@"userId"];
[[PFInstallation currentInstallation] saveInBackground];

[self.navigationController popToRootViewControllerAnimated:NO];
}
}];

[self.navigationController popToRootViewControllerAnimated:NO];
}
}];
}

请帮我解决我的问题。

最佳答案

看起来 Parse Twitter SDK 中可能存在错误。今天很多人都遇到这个问题。检查此链接 https://developers.facebook.com/bugs/914545211986956/

关于ios - Twitter 登录问题 Parse.com iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35178496/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com