#import "myView.h"

@implementation myView

@synthesize delegate;

- (id)initWithFrame:(CGRect)frame
{
   if ((self = [super initWithFrame:frame])) {
       [self setBackgroundColor:[UIColor blackColor]];
       boxView = [[UIView alloc] initWithFrame:CGRectMake(50, 30, 220, 220)];
       [boxView setBackgroundColor:[UIColor redColor]];
       [self addSubview:boxView];
   }
   return self;
}
