我有以下代码,尽管启用了ARC,但它仍然导致泄漏:
显然我没有发布,但是我该如何消除这个内存泄漏呢?
TWTweetComposeViewController *tweetViewController = [[TWTweetComposeViewController alloc] init];
[tweetViewController setInitialText:[self facebookAndTwitterStatus]];
tweetViewController.completionHandler = ^(TWTweetComposeViewControllerResult result) {
if(result == TWTweetComposeViewControllerResultDone) {
// the user finished composing a tweet
} else if(result == TWTweetComposeViewControllerResultCancelled) {
// the user cancelled composing a tweet
}
[self dismissViewControllerAnimated:YES completion:nil];
};
[self presentViewController:tweetViewController animated:YES completion:nil];
[self hideSettingsPopover];
显然我没有发布,但是我该如何消除这个内存泄漏呢?