I have a UIView in which I define it\'s border in the following manner:
UIView
self.layer.borderColor = [UIColor blackColor].CGColor; self.layer.border
Did you try setting the superview's 'clipsToBounds' property to YES? This is set to NO by default for performance reasons, but setting it to yes might give you the effect you are looking for.