我有一个应用程序,其中只包含以下内容:
- (void)viewDidLoad
{
[super viewDidLoad];
//Authenticate Local GameCenter player
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
{
[GKTurnBasedMatch loadMatchesWithCompletionHandler:^(NSArray *matches, NSError *error)
{
}];
}];
}很快,我就收到了一大堆的漏洞。我做错了什么吗?我使用ARC。

发布于 2013-03-18 17:44:36
GKTurnBasedMatch的loadMatchesWithCompletionHandler:方法中的泄漏是iOS 6.0.1,which has been fixed in iOS 6.1中的一个已知问题。
备注: iOS 6中不推荐使用authenticateWithCompletionHandler:方法,但该方法不会导致泄漏。
https://stackoverflow.com/questions/15473128
复制相似问题