简体   繁体   English

如何将UISlider添加到底部工具栏?

[英]How to add UISlider into a bottom Toolbar?

Is there any way to add a UISlider into a Toolbar, I need to add some other objects also. 有什么方法可以将UISlider添加到工具栏中,我还需要添加其他一些对象。 I am creating a tabbar based application with tableview. 我正在使用tableview创建一个基于选项卡的应用程序。 And I don't want to hide the tabbar. 而且我不想隐藏标签栏。
在此处输入图片说明
please check the figure. 请检查数字。

  1. Create your customUIView or customUIToolBar with frame size (0, 322, 320, 110) 创建具有框架大小( customUIViewcustomUIToolBar

  2. Add two UIButtons (with right frame size) in it with addSubView property. 使用addSubView属性在其中添加两个UIButtons (框架尺寸正确)。

    [self.customToolBar addSubView:button]; [self.customToolBar addSubView:button];

  3. Add that green thing image as you have shown in your question as a subView . 将问题中显示的绿色事物图像添加为subView

  4. Add a UISlider as a subview. 添加一个UISlider作为子视图。

  5. [self.view addSubView: customUIToolBar];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM