andreyvit / ScrollingMadness

A catalog of UIScrollView samples (iPhone)
243 stars 23 forks source link

Orientation Patch is incorrect #4

Open diclophis opened 14 years ago

diclophis commented 14 years ago

I think something is fishy with the code around line: 125 in ZoomScrollView.m

if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation)) {
    scrollViewSize = CGSizeMake(scrollViewSize.height, scrollViewSize.width);
}

Only when I comment it out do I get the expected result... note that I am setting the device orientation only in the Info.plist... not in code.

I will come up with a test soon to exemplify the weirdness, I just wanted to post this asap to see if anyone else have this same problem