NSThread次のコードを実行するがあります。
for (Experiment *exp in experiments) {
    ExperimentBlock *block = [[ExperimentBlock alloc] initWithFrame:CGRectMake(0, maxHeight, 310, 50)
                                                         experiment:exp
                                                             target:self
                                                             action:@selector(onExperimentButtonClicked:)];
    [scrollView addSubview:block];
    // block cannot be released for some inadequately explained reason
    maxHeight += 60;
}
優れたメモリ管理方法では、割り当て、コピー、または新規作成したオブジェクトをすべて解放する必要があります。ただし、スレッドが終了したときに、追加したブロックを解放(または自動解放)したUIScrollView場合、オブジェクトはUIScrollView1秒間表示されてから、消えます。
これらのオブジェクトを失うことなくメモリを解放するにはどうすればよいですか?