thefaj/OpenFlow

iOS 5 - Transition became weird and rude

Closed this issue · 2 comments

Hi,
It seems that Apple has made some changes related to transformations and positioning. I have discovered that when I run OpenFlow on iOS 5 device/simulatore, the transition from one cover to another became ugly and weird.

My solution for this issue includes this code replacement for transformations init:

leftTransform = CATransform3DTranslate(CATransform3DIdentity, 0, 0, SIDE_COVER_ZPOSITION);
leftTransform = CATransform3DRotate(leftTransform, SIDE_COVER_ANGLE, 0.0f, 1.0f, 0.0f);
rightTransform = CATransform3DTranslate(CATransform3DIdentity, 0, 0, SIDE_COVER_ZPOSITION);
rightTransform = CATransform3DRotate(rightTransform, SIDE_COVER_ANGLE, 0.0f, -1.0f, 0.0f);