Jakub
Jakub

Reputation: 3129

How to display a bar with buttons on the top of UIPickerView?

I would like to get an effect similar to this:

enter image description here

I wonder how to put the tab with the buttons at the top of the UIPickerView. What would be the best solution? I also would like to hide the picker, so the bar would also need to be hidden. I have some ideas, but I have a feeling that they are not the best ones. Could you share with me your opinion? It would be much appreciated!

Thanks!

Upvotes: 0

Views: 279

Answers (2)

TechZen
TechZen

Reputation: 64428

You need to create a superview to hold both the pickerview and the toolbar. You can then hide or show the pickview or toolbar within the superview or hide everything by hiding the superview.

Upvotes: 1

JustSid
JustSid

Reputation: 25318

You can use a UIToolbar for this.

Upvotes: 0

Related Questions