Reputation: 12954
Can someone please reveal the secret handshake in IB to allow a UIView subview to exceed the bounds of its parent superview?
Cheers, Doug
Upvotes: 2
Views: 3540
Reputation: 6697
Make the subview bigger than it's parent view and set the clip subviews of the parent view to NO.
(Note that the part of the subview that is not inside it's parent view will not be clickable even though it's visible)
Upvotes: 5
Reputation: 128
I think you can first find the parent view controller, then use parent view controller to present subview.
Upvotes: 0
Reputation: 2463
You can make it large than the superview, but it won't be visible out of bounds (at least not in my experimenting).
Upvotes: 1