
Here is my code:
case kTweetIndex:
{
TWTweetComposeViewController *tweetSheet =
[[TWTweetComposeViewController alloc] init];
[tweetSheet setInitialText:[NSString stringWithFormat:@"%@",self.item.link]];
[self presentModalViewController:tweetSheet animated:YES];
if (![TWTweetComposeViewController canSendTweet])
{
NSLog(@"Can't Send tweet");
}
}
This is just a massive amount of leak caused by twitter, and i don’t know how to handle it. Thanks!
Make Property of TWTweetComposeViewController or twitter class or you can one thing more alloc it in AppDelegate Class. It will work.