开发者

Navigation image too short in landscape

开发者 https://www.devze.com 2023-03-03 02:58 出处:网络
In my iPhone app, I\'ve put 开发者_StackOverflow社区an image sized 480 x 44 in the navigation bar, but when I change to landscape, the image becomes shorter. Please someone help me.The image size is r

In my iPhone app, I've put 开发者_StackOverflow社区an image sized 480 x 44 in the navigation bar, but when I change to landscape, the image becomes shorter. Please someone help me.


The image size is reduced because the navigation bar has a different size in landscape mode and it crops the portrait one (44px height).

Should be 32 pixels in height in landscape.


I would make 2 different versions of the image (landscape and portrait mode) and then implement -willAnimateRotationToInterfaceOrientation to select the appropriate version.

0

精彩评论

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