I have a method with a for() loop. In that loop, mylabel.text is updated many times. However, the actual label does not update on the screen until the method is done, updating with the last value created in the for() loop.
Using an NSLog, which does update in the middle of the for() loop, I see the value indeed changing for the label many times.
Is it the general practice in iOS to not update labels in the middle of the for() loop? I would imagine there is a way to do this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…