[Solved] How to add UILabel from a loop? [closed]


You should actually create the label and place it on your view.

UILabel *display = [[UILabel alloc] init];
display.text = [chars objectAtIndex:i];
display.frame = CGRectMake(x, y, 14, 22);
display.textColor = [UIColor whiteColor];
[self.view addSubView:display];

solved How to add UILabel from a loop? [closed]