开发者

UINavigiationBar left / back image scaled?

开发者 https://www.devze.com 2022-12-15 10:01 出处:网络
T开发者_JAVA百科rying to use a nice \'back\' arrow image, like that found in Apple\'s iPod app - when I add my 30x30 image it seems to squashed or scaled, as it looks tiny?

T开发者_JAVA百科rying to use a nice 'back' arrow image, like that found in Apple's iPod app - when I add my 30x30 image it seems to squashed or scaled, as it looks tiny?

Is it possible that the UINavigationBar's back item will have to be custom view perhaps?


Here is a quote from Apple's View Controller Programming Guide which you might find helpful:

To assign a custom button or view to the left position, and thereby replace the default Back button, assign a UIBarButtonItem object to the leftBarButtonItem property.

The UIBarButtonItem class has a call to initWithImage which allows you to set the view with an image of your choosing. Hope this helps.

0

精彩评论

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

关注公众号