• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Swapping views and autoresizing ....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Swapping views and autoresizing .... (From: Dariusz Krzykowski <email@hidden>)
 >Re: Swapping views and autoresizing .... (From: Darkshadow <email@hidden>)

  • Prev by Date: Drag and Drop
  • Next by Date: Re: Swapping views and autoresizing ....
  • Previous by thread: Re: Swapping views and autoresizing ....
  • Next by thread: Re: Swapping views and autoresizing ....
  • Index(es):
    • Date
    • Thread