简体   繁体   中英

Get soft keyboard on iOS to show up in Pure AS3 mobile project (flex 4.5)

I have a Pure AS3 mobile project that I'm developing in Flex 4.5, and deploying on both Android and iOS.

I have a TLF textfield that is set to editable, and when I touch on it on Android the soft keyboard shows up as expected, without me having to explicitly tell it to show up.

BUT on iOS, when I touch on it, I get the text field's focus event firing, but the soft keyboard doesn't show up. Anyone know how to make this appear, so the user can enter in text?

Please tell me it is possible to enter text in a pure AS3 mobile app on iOS :)

你只能在CLASSIC TEXT上使用软键盘,你不能在新的TLF上使用它(截至本文)...

With respect you should really do a thorough search on google or even stackoverflow, as this question has been posed already at least once. Anyway here is a question on the same issue I answered here:

Flash APIs for Android Platform

Basically it involves a new method in InteractiveObjects that manually invokes the system soft keyboard. Pretty basic stuff. Hope it helps! :)

You can do... textfield.needsSoftKeyboard = true;

I know this works for Andriod haven't tried on iOS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM