If I add 2 toolbar buttons in the open event how do I address them in the Toolbarpressed event? I don’t have a problem if I add them from the library as I just put the name in the case structure but that doesn’t seem to work if I add them by code
Art, For your additional Duplicate Ship button, if it wasn’t the ELSE option in the Case what would it’s specific case button.type be or how would you tag it?
If there were two additional toolbuttons you would need to define a tag upon creation, and check the tag in the ToolbarPressed event.
When I add toolbuttons to an iOS view I never use the layout editor, always add them by code. And I always define a tag for each button.
This is of course a personal choice, but after making many iOS apps I realized that adding the toolbuttons by code gives me more flexibility.