How do I set a UIView subview to be larger than its parent supervisor in IB?

Can anyone please expose the secret handshake in IB to allow the subview of the UIView to exceed the bounds of its parent supervisor?

Cheers, Doug

+2


source to share


3 answers


Make the subview larger than this parent view, and set the subframes of the parent view's subframes to NO.



(Note that the part of the subview that is not inside the parent view will not be accessible, even if it is visible)

+3


source


You can make it bigger than the supervisor, but it won't be visible outside (at least not in my experiments).



+1


source


I think you can first find the parent view controller and then use the parent view controller for the subview.

0


source







All Articles