• 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
Photo Extension and Orientation Change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Photo Extension and Orientation Change


  • Subject: Photo Extension and Orientation Change
  • From: Daniel Blakemore <email@hidden>
  • Date: Mon, 06 Oct 2014 14:55:53 -0600

I'm working on a app with a photo extension written in Swift.  I'm trying
to handle rotations intelligently in both the app and the extension.

In the app, like an obedient developer, I
implemented viewWillTransitionToSize:withTransitionCoordinator: to handle
rotations.  Everything works beautifully. To support iOS 7 devices, I
overwrote the old willRotateToInterfaceOrientation,
willAnimateRotationToInterfaceOrientation,
and didRotateToInterfaceOrientation.  That also works beautifully.

Well, in the photo extension on iOS 8 I used the exact same superclass that
implements the exact same orientation change methods.
ViewWillTransition... is not called at all, but the deprecated methods are
being called.

So, what am I doing wrong that a component of iOS 8 is calling methods that
were deprecated at the same time that it was first introduced, but is not
calling the method that I am supposed to use with the latest version.

I should mention that there is some subtle stuff in my rotation code that
prevents me from using the deprecated methods correctly in iOS 8, so I
can't just fall back on them knowing that they are in there in both
versions of the OS.

Any insight on this?  Has anyone else tried to use viewWillTransition... in
a photo extension specifically (Googling indicates that it may work in
other extension types, such as Today)?

--
Daniel Blakemore
Pixio Software
_______________________________________________

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: Obtaining class of key at runtime
  • Next by Date: iOS Category to match OS X category
  • Previous by thread: Re: Obtaining class of key at runtime
  • Next by thread: iOS Category to match OS X category
  • Index(es):
    • Date
    • Thread