• 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 rotate to interface orientation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS rotate to interface orientation problem


  • Subject: Re: iOS rotate to interface orientation problem
  • From: Leon Qiao <email@hidden>
  • Date: Tue, 19 Apr 2011 09:43:49 +0800

Hi Evadne,

Thanks for your reply! I tried the
"willAnimateRotationToInterfaceOrientation:duration:" as you mentioned. And
so far, so good.

Best regards
Leon

2011/4/18 Evadne Wu <email@hidden>

> For not using autoresizing masks, is it that you don’t want to use
> them (theological reasons) or you can’t (pragmatic reasons)?
>
> Please just use them if possible, will save lots of wasted hours
> wrestling the frameworks.  Don’t fight the frameworks :)
>
> Otherwise, try willAnimateRotationToInterfaceOrientation:duration:, I
> find it extremely helpful.
>
> Please don’t think about getting the transform; needing it is
> *usually* a very bad thing meaning that something is wrong either at
> the framework level (unlikely) or at app level (more likely, almost
> all the time).
>
> -ev
>
> On Mon, Apr 18, 2011 at 7:30 PM, Leon Qiao <email@hidden>
> wrote:
> > Dear all,
> >
> > Recently, I need to do the following:
> > 1. add a sub view of a view controller onto the window.
> > 2. Make it fit the bottom of the window. That is, the bottom side of the
> > view and the bottom of the window will
> > coincide.
> > 3. When the device rotated, the height of the subview will not be
> changed,
> > but I need to change the width, so
> > that it will fit the width of the window(for iPad, 1024 or 768 pixels).
> >
> > But it feels like the old understanding of the rotate user interface
> > orientation is not correct. Would you please tell me
> > where is the right place that I should put the modification frame code.
> For
> > some reason, I don't want to use the auto-resizing mask here. Should I
> put
> > it into the "didRotateFromInterfaceOrientation" or
> > "willRotateToInterfaceOrientation", or
> > "willAnimateRotateToInterfaceOrientation" method, and how should I do it?
> > Should I consider the transform of its super view?
> >
> > Thanks a lot!
> >
> > --
> > Best regards
> > Leon
> > _______________________________________________
> >
> > 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
> >
>



--
Best regards
Leon
_______________________________________________

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:
    • CALayer: Animation using actions property
      • From: "Bhatnagar, Arvin" <email@hidden>
References: 
 >iOS rotate to interface orientation problem (From: Leon Qiao <email@hidden>)
 >Re: iOS rotate to interface orientation problem (From: Evadne Wu <email@hidden>)

  • Prev by Date: Re: Resolving a crash address to position in code
  • Next by Date: system services ?
  • Previous by thread: Re: iOS rotate to interface orientation problem
  • Next by thread: CALayer: Animation using actions property
  • Index(es):
    • Date
    • Thread