Re: Swapping views and autoresizing ....
Re: Swapping views and autoresizing ....
- Subject: Re: Swapping views and autoresizing ....
- From: Dariusz Krzykowski <email@hidden>
- Date: Thu, 18 Nov 2004 09:28:54 +0100
Hi this is what I'm doing ... sigh
I'm setting the size of the subview to the size of te superview, also
-setAutoresizesSubviews:YES is called for both ...
Both subviews should resize horizontally and vertically - the flags are
set in IB and I logged them - they are ok ...
any ideas ?
dariusz
You need to call -setAutoresizesSubviews:YES to both the superview and
the subviews you're swapping in and out. Also, if the superview isn't
a set size (it's resizable), you may want to do [subview
setFrameSize:[superview frame].size] when you swap them, so that the
subview will be the right size.
Darkshadow (aka Mike Nickerson)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden