this._textField = cc.TextFieldTTF.textFieldWithPlaceHolder("", “Thonburi”, 50);
work in 3.0 pre
but does not work in 3.0beta
this._textField = cc.TextFieldTTF.textFieldWithPlaceHolder("", “Thonburi”, 50);
work in 3.0 pre
but does not work in 3.0beta
There is a conflict between web version engine and JSB for this function.
In web, you need to use cc.TextFieldTTF.create
, in JSB, it’s cc.TextFieldTTF.textFieldWithPlaceHolder
. We found it recently, so in the next release, we will rename this function to cc.TextFieldTTF.create
, because it’s more suitable for our API name protocols.