开发者

UINavigiationBar left / back image scaled?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜