• 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: Development <email@hidden>
  • Date: Mon, 06 Jun 2011 08:23:52 -0700

The parent view does not clip the subview actually. However the inner view is set to the exact same rectangle as the outer one initially. Would that make a difference?


On Jun 6, 2011, at 6:55 AM, Heath Borders wrote:

> 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

_______________________________________________

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

References: 
 >iOS: Automatically resizing subviews (From: Development <email@hidden>)
 >Re: iOS: Automatically resizing subviews (From: Heath Borders <email@hidden>)

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