Rudiger
Rudiger

Reputation: 6769

UIView in UIView issue

Perhaps I'm missing a property or misunderstanding something but having issues with something simple.

I have a UIView with a frame lets say of 100px high in which I have another UIView with lets say 50px high. If set the main UIView to 20px high the 50px high one is fully visible. I thought it might of been something to do with the bounds so I set that and its no different.

Sorry if this is answered somewhere else but couldn't find anything relating to this.

Upvotes: 1

Views: 202

Answers (1)

Kris Markel
Kris Markel

Reputation: 12112

On the "parent" view, set the clipsToBounds property to YES.

Upvotes: 4

Related Questions