• 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: Heath Borders <email@hidden>
  • Date: Mon, 06 Jun 2011 08:55:11 -0500

Make sure your subviews are small enough to fit inside your view initially.
I've had issues with resizing clipped subviews.

-Heath
On Jun 6, 2011 1:52 AM, "Development" <email@hidden> wrote:
> I thought I understood how auto resizing worked but I don't
>
>
> 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?
>
> I tried this but when I resize the view it's subview remains centered and
the same size.
>
> Inside of all the subviews I have done the following:
> [self setAutoresizingMask:UIViewAutoresizingFlexibleWidth |
UIViewAutoresizingFlexibleHeight];
>
> Is there a step I'm missing?
>
> The problem is that the main view's subview rotates. And the whole thing
obviously can be resized.
> If I manually resize the rotated subview I'm doing it wrong because it
looses it's shape completely
> I was hoping I could use autoresizing to solve this issue but I can't get
it to work._______________________________________________
>
> 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
_______________________________________________

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: postNotificationName Executes Many Times for a Single Invocation
  • Next by Date: Re: postNotificationName Executes Many Times for a Single Invocation
  • Previous by thread: iOS: Automatically resizing subviews
  • Next by thread: Re: iOS: Automatically resizing subviews
  • Index(es):
    • Date
    • Thread