mozharovsky
mozharovsky

Reputation: 1265

UIView moving inside its Superview

The problem is inside of moving a subview inside of its superview. Basically, I thought it would move only inside of its superview and once any part was over is would't be visible. But seems I'm wrong since the subview moves over the whole visible area.

What I do is simply change frame's origin of the subview. What can be wrong?

Upvotes: 0

Views: 229

Answers (1)

Joshua Sullivan
Joshua Sullivan

Reputation: 1139

Set the clipsToBounds property of the parent view to YES/true

Upvotes: 3

Related Questions