ブール値を持つブロックを呼び出しています。デバッガーによると、ブール値はfalseですが、trueとして扱われているようです。これはコンパイラ/Xcodeのバグですか、それともブロックに渡されるパラメータに同様の方法でマークを付ける必要があります__block
か?
// Hovering over the |finished| parameter displays the value of finished as NO
[self.repDataSynchronizationClient synchronizeWithRepId:rep.id andCompletion:^(NSString * progressMessage, BOOL finished){
if( finished )
{
[self hideLoader]; // Breakpoint set here, which I am hitting
}
else
{
[self setLoaderTitle:progressMessage];
}
}];
これは、ブレークポイントヒットとツールチップが表示された状況のスクリーンショットです。