when i write in lua , i set Label’s verticalAlignment , then error .
such as :
local text = Label:create()
text:setFontName(display.DEFAULT_TTF_FONT)
text:setFontSize(24)
text:setTextAreaSize(CCSizeMake(275,80))
text:setTextVerticalAlignment(kCCTextAlignmentLeft)
— then lua thorw error :error in function ‘setTextVerticalAlignment’.argument #2 is ‘number’; ‘CCVerticalTextAlignment’ expected.
why ??? why ??? , fuck ,kCCTextAlignmentLeft is not CCVerticalTextAlignment? joke me?
还能不能快乐的写代码了,scrollview也是,listview也是,大部分方法都没绑定到lua,怎么用?