in the view that you like to add your half view.
#Import "thehalfview.h"
- (void) layoutSubviews{
CGRect r = [self bounds];
float w = [self bounds].size.width;
float h = [self bounds].size.height;
// use CGRectDivide(r, &helfview, &r, h * 0.10f, CGRectMinYEdge); to cut a //frame for it
halfview *thehalfview =
[[[halfview alloc]initWithFrame:halfview]autorelease];
[self addSubview:thehalfview];
}
// dont forget to setup your halfview
- (id) initWithFrame

CGRect)frame{
self = [super initWithFrame:frame];
if (self == nil)
return nil;