我使用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