在iOS 9模拟器中运行我的应用程序时,我在Xcode 7 build 6调试控制台中看到以下错误:
2015-08-27 11:31:25.464 Reps[87841:2572333] 11:31:25.463 ERROR: 177: timed out after 0.012s (589 590); mMajorChangePending=0
Run Code Online (Sandbox Code Playgroud)
有没有人见过这个?知道这是什么意思吗?
我是否必须连续声明弱引用以中断块内块的保留周期?
__weak typeof(self) weakSelf = self;
[self setMyBlock:^(id obj, NSUInteger idx, BOOL *stop) {
typeof(self) strongSelf = weakSelf;
[strongSelf doSomething];
[strongSelf setMyBlock:^(id obj, NSUInteger idx, BOOL *stop) {
//do I need to create another weak reference to strongSelf for this block?
[strongSelf doSomething];
}];
}];
Run Code Online (Sandbox Code Playgroud)