开发者

Increase width of tab bar item to fit image

I am doing a simple tab based app, with one 2 tab items and I would like to have an image in each tab.

The problem is, tabbarcontroller is cropping the images rather than fitting them in. I just have two images, basically开发者_开发技巧 text, saying "ABOUT","SETTINGS" and i would like them to take the full width of the tab bar. Something like the attached image. How can i achieve this without the images getting cropped.

Referring to the image "ABOUT" & "SCAN QR" are images.

Thanks

Increase width of tab bar item to fit image


I don't think what you wish to accomplish is achievable by using the standard controls. I'd recommend using a custom toolbar instead of the tab bar controller.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜