小编ben*_*een的帖子

Xcode 7调试输出:"ERROR:177:超时...... mMajorChangePending = 0"

在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)

有没有人见过这个?知道这是什么意思吗?

xcode ios xcode7-beta6

23
推荐指数
1
解决办法
5262
查看次数

保留块内块的循环

我是否必须连续声明弱引用以中断块内块的保留周期?

__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)

objective-c ios objective-c-blocks

4
推荐指数
1
解决办法
202
查看次数