takashisite / TSPopover

UIPopover like UI for iPhone
Other
316 stars 68 forks source link

Landscape Support? #19

Open ryanmsusa opened 11 years ago

ryanmsusa commented 11 years ago

Doesn't really work in landscape mode

fjsosa commented 10 years ago

I had an issue in iOS 8, in landscape mode, the problem was solved removing these lines in the init method:

if(self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || self.interfaceOrientation == UIInterfaceOrientationLandscapeRight){ screenRect.size.width = [[UIScreen mainScreen] bounds].size.height; screenRect.size.height = [[UIScreen mainScreen] bounds].size.width; }

this seems to be a hack, but with iOS SDK 8, I could fix the issue.