Iphone OAuthTwitterController委托崩溃

Iphone OAuthTwitterController委托崩溃,iphone,ios,delegates,twitter,mgtwitterengine,Iphone,Ios,Delegates,Twitter,Mgtwitterengine,调用此委托函数时,我获得EXC_BAD_访问权限: OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername 有什么想法吗 我的班级是这样的: @interface QuizzResultController: UIViewController <NSXMLParserDelegate,SA_OAuthTwitterControllerDelegate> {

调用此委托函数时,我获得EXC_BAD_访问权限:

 OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername
有什么想法吗

我的班级是这样的:

@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{

}
@interface-QuizzResultController:UIViewController{
IBUILabel*结果标签;
IBUIButton*facebookButton;
IBUIButton*推特按钮;
IBUIButton*按钮3;
//……其他变量//
SA_OAuthTwitterEngine*_引擎;
SA_OAuthTwitterController*控制器;
}
///m
#pragma mark SA_OAuthTwitterControllerDelegate
-(void)OAuthTwitterController:(SA_OAuthTwitterController*)通过用户名验证的控制器:(NSString*)用户名{
NSLog(“@auth done with username:%@”,username);
}
-(void)OAuthTwitterController失败:(SA_OAuthTwitterController*)控制器{
}
-(void)OAuthTwitterControllerCanceled:(SA_OAuthTwitterController*)控制器{
}

崩溃发生在username的NSLog之前,线程1中有“objc_msgSend”,您的log语句不正确,应该是:

NSLog(@"auth done with username : %@",username);
巴阿;)谢谢我想我太累了。很高兴知道丢失的@导致了那种崩溃!