Bla*_*use 5 xcode objective-c instruments gamekit ios
我有一个只包含这个的应用程序:
- (void)viewDidLoad
{
[super viewDidLoad];
//Authenticate Local GameCenter player
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error)
{
[GKTurnBasedMatch loadMatchesWithCompletionHandler:^(NSArray *matches, NSError *error)
{
}];
}];
}
Run Code Online (Sandbox Code Playgroud)
马上,我得到了大量的泄漏.难道我做错了什么?我用ARC.

loadMatchesWithCompletionHandler:方法中的泄漏GKTurnBasedMatch是 iOS 6.0.1 中的一个已知问题,已在 iOS 6.1 中修复。
PS 该authenticateWithCompletionHandler:方法在 iOS 6 中已被弃用,但它不对泄漏负责。
| 归档时间: |
|
| 查看次数: |
206 次 |
| 最近记录: |