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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to