I have a "frame within a frame" scenario. There is a 600x600 area inside of the main screen. What I would like to do is to just color the 600x600 area so that I can visualize where I am working. I have tried using self.backgroundColor = [UIColor whiteColor];
but that colors the whole screen instead of just the 600x600 area.
What would be the best way to color the background of the 600x600 area?
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame: CGRectMake(84, 0, 600, 600)];
if (self) {
//initialization code
tileArray = [[NSMutableArray alloc]initWithCapacity: 9];
tile1 = [[TileView alloc]
initWithFrame:CGRectMake(100, 100, 128, 128)
withImageNamed:@"Yellow1.png"];
[self addSubview:tile1];
int x = [self frame].size.width;
int y = [self frame].size.width;
NSLog(@" Width: %i. Height: %i.", x,y);
}
return self;
}