Author Topic: Best control for list of states (~50 items in list)  (Read 2498 times)

DuaneDog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Best control for list of states (~50 items in list)
« on: March 03, 2014, 02:20:37 AM »
I'm curious from a UI standpoint how NGUI would best implement asking for the users state from a list box? I was going to use the popup but I think doesn't work well on mobile and may not scroll properly. I'd just like to know what a best practice or idea would be to let a user pick from a list about 50 items long.

All the best,

DuaneDog

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best control for list of states (~50 items in list)
« Reply #1 on: March 04, 2014, 12:24:44 AM »
Just create a regular scroll view. If you want it to be a popup, have a button show this scroll view when clicked. In the same script that opens it, inside OnSelect(false) function hide the popup scroll view.