Reputation: 2942
I have a tableview where long press on a row triggers actionsheet - options. The action sheet is displayed properly in landscape/portrait mode when I press anywhere on the row (think iPad screen). But when I long press on the extreme right hand side of the row in landscape mode (near disclosure indicator), and change to the portrait mode, The actionsheet gets displayed as shown below.
Upvotes: 0
Views: 279
Reputation: 6680
The UIActionSheet
doesn't anchor itself to anything, so when the screen rotates it stays where it is, while everything else has moved. You want to redisplay the action sheet in willAnimateRotationToInterfaceOrientation:
or didAnimateRotationFromInterfaceOrientation
.
Upvotes: 1