iOS Question dynamic horizontal menu

SlashIT

Member
Licensed 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

watesoft

Active Member
Licensed 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

SlashIT

Member
Licensed 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
 
Top