开发者

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:

Wrong UIActionSheet layout in popover

In portrait the popover has to be displayed with an arrow on the right side:

Wrong UIActionSheet layout in popover

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜