gpt4 book ai didi

iphone - OAuthTwitterController 委托(delegate)崩溃

转载 作者:行者123 更新时间:2023-11-29 05:03:53 25 4
gpt4 key购买 nike

调用此委托(delegate)函数时,我收到 EXC_BAD_ACCESS :

 OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername

有什么想法吗?

我的类(class)看起来像这样:

@interface QuizzResultController: UIViewController <NSXMLParserDelegate,SA_OAuthTwitterControllerDelegate> {


IBOutlet UILabel *resultLabel;

IBOutlet UIButton *facebookButton;
IBOutlet UIButton *twitterButton;
IBOutlet UIButton *button3;
// .... other variables ...//

SA_OAuthTwitterEngine *_engine;
SA_OAuthTwitterController *controller;



}

/// .m

#pragma mark SA_OAuthTwitterControllerDelegate


- (void) OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername: (NSString *) username{

NSLog("@auth done with username : %@",username);

}

- (void) OAuthTwitterControllerFailed: (SA_OAuthTwitterController *) controller{

}

- (void) OAuthTwitterControllerCanceled: (SA_OAuthTwitterController *) controller{

}

崩溃发生在用户名的 NSLog 之前,线程 1 中带有“objc_msgSend”

最佳答案

您的日志语句不正确,应该是:

NSLog(@"auth done with username : %@",username);

关于iphone - OAuthTwitterController 委托(delegate)崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6142289/

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