Objective c label text not updating

Thanks for answering - but that really can't be the problem, because i do check my array's bounds in that function, and the text value does print out correctly.

It just doesn't update the Label's text field. Update: I re-checked that the random number was 2 and there are 4 elements in the array. It looks like your variable is being set properly in view Did Load, but reset to nil before the view is displayed.

I am wondering how to update each of the other view.

Can you put the same NSLog(@"%@", Val); right before the perform Request:?

(side note: I set UI constraints for the label and am sure that the label is in place. You can check by adding an "All Exceptions" breakpoint.

Comments