You can place these lines in your initWithFrame:
self = [super initWithFrame:frame]
if (self!=null) {
// if self has been allocated
UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(10, 100, 300, 40)];
[label setText:@"Label"];
[label setTextAlignment:NSTextAlignmentJustified];
[self addSubview:label];
}
Its a very simple example .. to add just one label you can add as many objects you want programatically.. with your desired locations and frame sizes and whatever properties you want...
perhaps you should have searched "UILabel programatically..