To add something (very important) to the answers above;
CGRect frame = CGRectMake(x, y, width, height);
UIView *view = [[UIView alloc] initWithFrame:frame];
Then you want to add it to the supervisor (assuming view is self.view)
[self.view addSubview:view]