我有一个应用只包含这个:
- (void)viewDidLoad
{
[super viewDidLoad];
//Authenticate Local GameCenter player
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
{
[GKTurnBasedMatch loadMatchesWithCompletionHandler:^(NSArray *matches, NSError *error)
{
}];
}];
}
马上,我得到了大量的漏洞。难道我做错了什么?我使用 ARC。
最佳答案
loadMatchesWithCompletionHandler:
GKTurnBasedMatch
方法中的泄漏是 iOS 6.0.1 中的一个已知问题,which has been fixed in iOS 6.1。
附言authenticateWithCompletionHandler:
方法在 iOS 6 中已弃用,但它不对泄漏负责。
关于ios - 为什么我会漏水?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15473128/