Curnelious
Curnelious

Reputation: 1

UIView as subview won't clip to superview

I have a superview with rounded corners. It has a custom subview (UIView) that will cover the rounded corners of it's superview. (so the superview will look like it doesn't have rounded corners)

I tried on subview :

  self.clipsToBounds=true

but it will still cover the corners of its superview.

Upvotes: 3

Views: 547

Answers (1)

Joshua Hart
Joshua Hart

Reputation: 852

You want the clips to bounds on your superview.

Upvotes: 5

Related Questions