gpt4 book ai didi

iphone - iOS 5中的Twitter使用ARC泄漏内存

转载 作者:行者123 更新时间:2023-12-01 16:55:40 25 4
gpt4 key购买 nike

这是我的代码:

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");
}
}

这只是Twitter引起的大量泄漏,我不知道该如何处理。谢谢!

最佳答案

设置TWTweetComposeViewController或twitter类的属性,或者可以在AppDelegate类中对其进行更多分配。它将起作用。

关于iphone - iOS 5中的Twitter使用ARC泄漏内存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12038267/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com