Generally speaking tabBars are anchored to the bottom of the app and the scroll view would be just above it. In apps that want to mimic web pages, the menu tends to be a bar at the top of the page. I’m unsure which model you are trying to go with. I suppose it might make sense to have a tabBar at the top.
If you’re using a base 320x480 point config.lua and you want a fixed tabBar:
make the tabBar 50 points high and position it’s .y = display.actualContentHeight - tabBar.height * 0.5
(I’m assuming you will name your tabBar “tabBar”). If it’s part of an app where its in a scene that needs to hide when the scene changes, add it to the scene’s group. Most tabBars are there to switch between scenes, so building the tabBar in main.lua and not adding it to a scene’s group is considered a good thing.
Next for the scrollView, set it’s height to: display.actualContentHeight - tabBar.height - anyTopBarYouMightHave.height. I believe the scrollView creator allows you to position by top and left, position the top to anyTopBarYouMightHave.height or 0 if you don’t have one.
If you want the tabBar inside the scrollView, create it after you create the scrollView and insert it into the scrollView at whatever logical place (top or bottom) that you want it.
Rob