Obj-Swift
Obj-Swift

Reputation: 2942

UIActionsheet location changes from landscape to portrait mode

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.

enter image description here

Upvotes: 0

Views: 279

Answers (1)

MishieMoo
MishieMoo

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

Related Questions