adamdebono / ADFlipTransition

An alternative presentation animation for iOS. Mimics the flip animation from the iOS iTunes/App Store.
Other
126 stars 32 forks source link

Only Works Properly In Landscape - iOS 7 Compatibility Issues #9

Open alexsaidani opened 11 years ago

alexsaidani commented 11 years ago

I'm running iOS 7 on iPhone 5, for some reason when I select a cell or press a button to flip it works perfectly in landscape mode however in portrait the flipped view is presented as it would be in landscape mode and is too far to the right, it is also the width of the view in landscape and the height of the view in landscape.

alexsaidani commented 11 years ago

Actually, it's not just this, I think it's iOS 7 compatibility issues rather than simply portrait orientation issues.

alexsaidani commented 11 years ago

It's this line of code that causes the issue, not sure why it has been added to be honest.

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f) { rect = [self switchRectOrientation:rect]; }

jcampbell05 commented 10 years ago

I have issue in landscape but not portrait in my case.

markkrenek commented 10 years ago

switchRectOrientation should only to be called when in landscape mode. Look at the other spot in -fullScreenRect where switchRectOrientation is used and you'll see the proper usage.