Hello I would like to ask how to create multiple views programmatically and show them on the screen, I have tried this but there is something missing.
int x,y;
x= 0;
y=50;
for (int i=0; i<4; i++)
{
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(x, y, 300, 100)];
view.backgroundColor = [UIColor redColor];
[self.view addSubview: view];
y+=40;
}