如何增加UITabbar的大小 [英] How to increase the size of UITabbar

查看:134
本文介绍了如何增加UITabbar的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须增加UITabbar的高度。我该怎么办呢?


I have to increase the height of UITabbar. How can I do this any help please?

推荐答案

你可以改变它的高度,宽度,x和y坐标。见:

You change its height, width, x and y coordinates. See this:

CGRect viewFrame=self.tabBar.frame;
        //change these parameters according to you.
        viewFrame.origin.y -=50;
   viewFrame.origin.x -=20;
   viewFrame.size.height=200;
   viewFrame.size.width=300;
        self.tabBar.frame=viewFrame;

如果在选择时选择了tabBased应用程序,则可以更改tabBar而不是tabBar控制器的这些参数应用类型。

You can change these parameters for tabBar not tabBar controller in case of tabBased app selected in starting when you select the app type.

这篇关于如何增加UITabbar的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆