local function composeConfession()
print("composeConfession()")
end
function displyHomeScreen()
local composeBtn=display.newImageRect("images/composeBtn.jpeg", 30, 30)
composeBtn:addEventListerner("tap", composeConfession)
end
我从 main 调用 displyHomeScreen() 因为它是全局的并创建了一个按钮,现在在其上分配了 composeConfession() 侦听器,它显示的错误是
错误:
文件:/Users/nashad/Desktop/JustInMind/homeScreen.lua 行:32
尝试调用方法“addEventListerner”(零值)