iOS Question dynamic horizontal menu

SlashIT

Member
Licensed User
Longtime User
Hi everyone,
I would like to create a textual horizontal menu with a bar indicating which menu item is selected. I made one with xcustomlistview, but the width of the single box (while the panel inserted, yes) cannot be changed.
Has anyone realized something similar?
I attach a menu image.
 

Attachments

  • bar_menu.jpg
    bar_menu.jpg
    49.1 KB · Views: 252

watesoft

Active Member
Licensed User
Longtime User
Hi everyone,
I would like to create a textual horizontal menu with a bar indicating which menu item is selected. I made one with xcustomlistview, but the width of the single box (while the panel inserted, yes) cannot be changed.
Has anyone realized something similar?
I attach a menu image.

Look at this example.
 

Attachments

  • dynamic menu.zip
    3 KB · Views: 250
Upvote 0

SlashIT

Member
Licensed User
Longtime User
thanks Erel and watesoft,
the final solution was so simple !!

Having to create a control menu for a second xcustomlistview, I was inspired by the example of watesoft.

The whole menu is created on the fly.

xcustomlistview <- 1 panel <- labels
So it is possible to place the labels where I want inside the panel and then I get a text menu with dynamic width.
When I click the label, I cycle the objects of the xcustomlistview and with the tag of the label I recognize it and change the color.

So simple !!
thank you
 
Upvote 0
Top