• 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
autoresizingMask and transformation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoresizingMask and transformation


  • Subject: autoresizingMask and transformation
  • From: Tales Pinheiro De Andrade <email@hidden>
  • Date: Sun, 31 Jul 2011 23:18:34 -0300

Hello,

I have a custom view that have a square subview. The superview is stretched in both directions when the device is rotated.

The subview has autoresizingMask=UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;

If I just rotate the device, everything is OK. But the subview can be rotated via CGAffineTransform. So, if I rotate the subview and after that I rotate the device, the subview get distorted.

What I'm supposed to do so the subview just get the correct rotation AND the correct proportion to the subview?

Thank you

Tales Pinheiro de Andrade
_______________________________________________

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

  • Prev by Date: Re: Ticker tape display
  • Next by Date: Trying out Preferences example - Crashes
  • Previous by thread: Re: OSX/iOS OpenID client library?
  • Next by thread: Trying out Preferences example - Crashes
  • Index(es):
    • Date
    • Thread