dugla
dugla

Reputation: 12954

How set a UIView subview larger then its parent superview in IB?

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

Answers (3)

CedricSoubrie
CedricSoubrie

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

llch
llch

Reputation: 128

I think you can first find the parent view controller, then use parent view controller to present subview.

Upvotes: 0

Alexandre Cassagne
Alexandre Cassagne

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

Related Questions