this is my basic code to add tabbar I dont get any error but it shows me a blank screen,the tab bar is not being displayed
local widget = require(“widget”)
local tabButtons={
{
width=32,
height=32,
defaultFile=“heart.png”,
label=“level-1”,
selected=true
},
{
width=32,
height=32,
defaultFile=“heart.png”,
label=“level-2”
}
}
– Create the widget
local tabBar = widget.newTabBar
{
top = display.contentHeight +30,
width = display.contentWidth-50,
buttons = tabButtons
}
tabBar.isVisible = true
basically I am trying to create a grid menu using the tabbar,is it a good idea to use a tabbar or buttons,I will have images as the background of each tab.