当前位置: 动力学知识库 > 问答 > 编程问答 >

Multiline input with cc.EditBox ccui.TextField in Cocos2d-JS

问题描述:

How to make multiline input in Cocos2d-JS?

I try to use cc.EditBox() and ccui.TextField(), but it works only in oneline mode.

Run on platforms: iOS, Android

Thanks!

Duplicated here: https://github.com/cocos2d/cocos2d-js/issues/1761

网友答案:

Not 100% sure about cocos-JS, but in cocos2d-x it can't be done easily, since non of the standard components not provide multiline editing feature.

In cocos2d-x we can show native android / ios view with native components but its not very pleasant workaround.

分享给朋友:
您可能感兴趣的文章:
随机阅读: