Re: iOS: Automatically resizing subviews
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