Hi All,
I am trying with widget element, but while checking button and its onRelease event, it works fine in iPhone but doesn’t work with iPad while I am checking in Corona simulator.
My Code Snippet :
module(…, package.seeall)
function new()
local widget = require ( ‘widget’ )
local myView = display.newGroup()
function showAlertMsg()
– Do Something
print( ‘Click event called’ )
end
local myBtn = widget.newButton
{
defaultFile = ‘img.png’,
overFile = ‘overImg.png’,
label = ‘Click Me’,
labelAlign = ‘center’,
labelColor = { default = { 255 }, },
fontSize = 48,
left = 100,
top = 100,
width = 200,
height = 100,
emboss = true,
onRelease = showAlertMsg
}
myView:insert( myBtn )
return myView
end
Please suggest, If I missed something