Search code examples
iphoneuitabbarcontrollertoolbaruislider

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. I am creating a tabbar based application with tableview. And I don't want to hide the tabbar.
enter image description here
please check the figure.


Solution

    1. Create your customUIView or customUIToolBar with frame size (0, 322, 320, 110)

    2. Add two UIButtons (with right frame size) in it with addSubView property.

      [self.customToolBar addSubView:button];

    3. Add that green thing image as you have shown in your question as a subView.

    4. Add a UISlider as a subview.

    5. [self.view addSubView: customUIToolBar];