How to hide content when switching tabs?

Self-explanatory question - how to hide content in previously selected tabs when switching between them?

The answer is just as simple, use display groups. Tables and display groups are cornerstones in corona/lua Understand that as well as the scope of coding lua, and much is done

If you’re using Composer, then each tab’s contents would be a separate scene and you could let Composer manage your scene for you. You can study our business app sample where we create the tabBar in main.lua but use it to show various Composer scenes:

https://github.com/coronalabs-samples/business-app-sample

Rob

The answer is just as simple, use display groups. Tables and display groups are cornerstones in corona/lua Understand that as well as the scope of coding lua, and much is done

If you’re using Composer, then each tab’s contents would be a separate scene and you could let Composer manage your scene for you. You can study our business app sample where we create the tabBar in main.lua but use it to show various Composer scenes:

https://github.com/coronalabs-samples/business-app-sample

Rob