• 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: iOS: Automatically resizing subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS: Automatically resizing subviews


  • Subject: Re: iOS: Automatically resizing subviews
  • From: David Duncan <email@hidden>
  • Date: Mon, 6 Jun 2011 08:38:05 -0700

On Jun 5, 2011, at 11:51 PM, Development wrote:

> According to the docs if I want to automatically resize all the subviews of a view I need to set the View up with
>
>        [self setAutoresizesSubviews:YES];
>        self.contentMode =UIViewContentModeScaleToFill;
>
> No?


The contentMode is irrelevant (it has to do with how the view's graphical content – what you draw in -drawRect: – fits in the view, not its subviews).

You may want to just spend a bit of time in Interface Builder prototyping this, as it can sometimes be difficult to predict what you get from setting the autoresizing masks in a particular way.
--
David Duncan

_______________________________________________

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: iOS: Automatically resizing subviews
      • From: Development <email@hidden>
References: 
 >iOS: Automatically resizing subviews (From: Development <email@hidden>)

  • Prev by Date: Re: [ANN] CoreParse
  • Next by Date: Re: NSTerminateLater and thread
  • Previous by thread: Re: iOS: Automatically resizing subviews
  • Next by thread: Re: iOS: Automatically resizing subviews
  • Index(es):
    • Date
    • Thread