iOS Question (Mis-) Use toolbar as tab bar?

David Meier

Active Member
Licensed User
Longtime User
I tried to implement an app with a tab bar in combination with navigation controllers for each page. But I have difficulties such as not being able to swipe back to the last page or displaying a customlistview with correct size. As a toolbar is very similar I am thinking of (mis-)using the toolbar as tab bar. I could define my own icons where a label would be part of the icon image. Toolbars would be much easier to use because they are part of the standard navigation controller ;)

What do you think, is this a stupid way to go?

Thanks
David
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
displaying a customlistview with correct size.
Make sure to handle the parent's Resize event and resize CLV there.

It is not exactly clear how should the interface look. The only problems I see with using the tool bar as a tab bar are:
1. The bar will move together with the page. You can show the new page without animation.
2. You will need to implement the same tool bar in each page. I would have used a class for this that creates and manages the bar. This way you can create a class instance for each page.
 
Upvote 0
Top