• 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: How to get max size of view according to constraints?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get max size of view according to constraints?


  • Subject: Re: How to get max size of view according to constraints?
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 20 Mar 2012 21:29:29 +0000

On 20 Mar 2012, at 21:12, Charles Srstka wrote:

> The -layoutSubtreeIfNeeded method, in contrast, always seems (at least in my testing) to change everything to the minimum allowed size. So for the example above, if you set the view to have the size { 200, 300 }, it would change that to { 100, 200 }, despite { 200, 300 } being a perfectly legal size under those constraints. I don’t want to find what the system thinks is the “one true” size — I’m just trying to figure out the limits so I can keep the sizes legal, that’s all.
>
> Charles

I am getting a bit befuddled. Is the following what we have:

1. A certain view hierarchy managed by a set of constraints.
2. A certain Charles, who wishes to programatically modify (maximise?) the size of one (or more) of the managed views in such a way that it doesn't cause a layout exception.
3. In order to perform 2, Charles wants to be able to query the layout for a given view to determine its (maximum?) allowed size.

Regards

Jonathan Mitchell
Mugginsoft LLP



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get max size of view according to constraints?
      • From: Charles Srstka <email@hidden>
References: 
 >How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Richard Somers <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Kyle Sluder <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Kyle Sluder <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Kyle Sluder <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: further confusion regarding the release of controls loaded from a nib
  • Next by Date: Re: UIPickerView joy
  • Previous by thread: Re: How to get max size of view according to constraints?
  • Next by thread: Re: How to get max size of view according to constraints?
  • Index(es):
    • Date
    • Thread