我使用Twitter誓言Twitter的共享,突然间,当我点击Tweet按钮时,相同的代码崩溃。应用程序崩溃时,Tweet按钮点击SIGKILL错误
应用程序在Twitter宣誓发送更新请求时崩溃。
这里是共享选项
-(IBAction)ShareWithTwitter:(id)sender
{
NSLog(@"Tweet !!!");
if(!_engine)
{
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
_engine.consumerKey =kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;
}
else
{
_engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self];
_engine.consumerKey =kOAuthConsumerKey;
_engine.consumerSecret = kOAuthConsumerSecret;
}
UIViewController *controller = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:_engine delegate:self];
if (controller)
{
[self presentModalViewController: controller animated: YES];
}
}
的代码和这个代码是分享Tweet! (哪里的应用程序崩溃)。
-(IBAction)updateTwitter:(id)sender
{
activityIndicatorView.hidden=NO;
activityIndicatorView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
[activityIndicatorView startAnimating];
[tweetTextField resignFirstResponder];
NSString *strToPostOnTwitter = @"Hello Happy New Year to All !!!";
NSLog(@"String to Post is : %@",strToPostOnTwitter);
//Twitter Integration Code Goes Here
[_engine sendUpdate:strToPostOnTwitter];
//btnTwitter.hidden = YES;
}
嘿!你没有得到我的通知。? – mAc 2012-01-04 06:40:26
米没有得到! – NSException 2012-01-04 08:53:57
为我工作..... http://stackoverflow.com/questions/8576877/mgtwitterengine-crash-in-ios5 – 2012-01-24 12:48:53