Here are two component, UIView *superView, and UILabel *label. label is a subview of superView. The issue is that the label will be on top of the superView, when I move the label out of its super view. Did not the label be invisible if it is out of its super view’s frame?
Thanks!
UIViewhas a propertyclipsToBounds. Setting it toYESfor yoursuperViewwill make all views outside of its bounds be clipped.