UIButtons work when rotated right, but not when rotated left. Huh?

Posted by Ben Collins on Stack Overflow See other posts from Stack Overflow or by Ben Collins
Published on 2010-06-17T20:26:59Z Indexed on 2010/06/18 0:53 UTC
Read the original article Hit count: 421

Filed under:
|
|

I have a view that is added to the current view when the device is rotated to a LandscapeLeft or LandscapeRight orientation. This view has 4 buttons on it that are all connected to outlets and each have the "touch up inside" event hooked up to the same action. If rotated to a LandscapeLeft orientation, I transform my added view to rotate -90 degrees, and everything works fine. If rotated to a LandscapeRight orientation, I transform the added view to rotate 90 degrees, and the buttons don't work! Highlighting doesn't happen, and the action isn't called.

I am at a bit of a loss as to why this might be. Any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk