Wrong UIActionSheet layout in popover
I’ve got an UIActionSheet
with a single button that I show in a popover. In landscape mode there is a plenty of space around the popover, so that it displays with an arrow 开发者_运维问答in the middle and everything is fine:
In portrait the popover has to be displayed with an arrow on the right side:
Now the button looks a little bit too low and little bit too far to the right (it’s not the cropping). Have you met this behaviour? Did you manage to fix it?
Looks strange?
Of the top of my head you could send the button a
[button sizeToFit]
message after it has been added to the popover. It's a long shot.
精彩评论