ios - 为什么我会漏水?

标签 ios objective-c xcode instruments gamekit

我有一个应用只包含这个:

- (void)viewDidLoad
{
    [super viewDidLoad];

    //Authenticate Local GameCenter player
    [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
     {
         [GKTurnBasedMatch loadMatchesWithCompletionHandler:^(NSArray *matches, NSError *error)
          {

          }];
     }];
}

马上,我得到了大量的漏洞。难道我做错了什么?我使用 ARC。

enter image description here

最佳答案

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/

相关文章:

ios - 如何使用 Base internationalizations swift 3 在运行时本身更改 ios 应用程序的语言?

ios - ios 中的 UICollectionView 单元格滚动问题

ios - 为什么我们在iOS中使用出队可重用关键字

iphone - UIActivityViewController 附加文​​件 - 错误的文件类型

swift - 计分系统多次计分

iphone - 使用 UIAutomation 单击键盘 'Next' 键

ios - 从iOS控制GoPro

iphone - 在 iphone 应用程序 View 中最好在标签中显示 url 链接

ios - 供应配置文件不包括应用程序标识符和钥匙串(keychain)访问组权利

ios - Xcode 7.3 : Can't import MetalKit