Reputation: 1265
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
Reputation: 1139
Set the clipsToBounds
property of the parent view to YES/true
Upvotes: 3