How to make an iPhone dropdown-looking button

前端 未结 2 1101
盖世英雄少女心
盖世英雄少女心 2021-01-14 02:02

I\'ve seen a dropdown-like button on many apps, including Turf Wars, that simulates a dropdown with a picker. I need to use the same functionality in my app, but I\'m not to

相关标签:
2条回答
  • 2021-01-14 02:05

    You can use a button with the image like dropdown image. And you can place a picker over that button hidden. In the click event you will show the picker. And after selection on picker you have to update the text value of the button and hide the picker again. Hope it helps you...

    0 讨论(0)
  • 2021-01-14 02:11

    You can use a pop over that has picker in it.You can use use different images as UIButton background as you mentioned.It will give a feel of dropdown button.You can show popover on button action

    0 讨论(0)
提交回复
热议问题