更改标签栏高度时出现问题
我想改变标签栏的高度。
代码是:
rootController.tabBar.frame= CGRectMake(0,450,320,30);
rootController是TabBarController对象。
在这里,我得到了我的视图和视图之间的空间。调整选项卡栏大小后的选项卡栏。
那么调整它的大小是没有用的。如何正确调整它的大小,以便 myview 和 myview 之间的空间tabbar可以去掉吗?
|--------------------|
|
|
|
|
|
|........................|这里在视图和视图之间我的标签栏空间仍然存在
|........................|
|视图1 |视图2 |
|--------------------|
有什么解决办法吗? 提前致谢 ...
I want to change the height of Tabbar.
the code is :
rootController.tabBar.frame= CGRectMake(0,450,320,30);
rootController is TabBarController Object.
here I am getting the space between my view & tabbar after resizing the tabbar.
then Its of no use to resize it. How to resize it properly so that space between myview & tabbar can be eliminated ?
|--------------------|
|
|
|
|
|
|........................|here between view & my tabbar space remains
|........................|
| view1 | view2 |
|--------------------|
Is there any solution?
Thanks in advance ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很确定标签栏不是设计来调整大小的。苹果希望这些东西的尺寸和外观保持一致。
I'm pretty sure the tabbar isn't designed to be resized. Apple want a consistent size and look with these kinds of things.
尝试 rootController 中的代码:
Try the code in your rootController: