CGFloat borderWidth = 1.0f;
CGRect myContentRect = CGRectInset(self.contentView.bounds, borderWidth, borderWidth);
self.myContentView = [[UIView alloc] initWithFrame:myContentRect];
self.myContentView.backgroundColor = [UIColor whiteColor];
self.myContentView.layer.borderColor = [UIColor colorWithWhite:0.8f alpha:1.0f].CGColor;
self.myContentView.layer.borderWidth = borderWidth;
[self.contentView addSubview:self.myContentView];