Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: peterworth on July 02, 2014, 06:18:48 AM

Title: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
Post by: peterworth on July 02, 2014, 06:18:48 AM
When you do UIInput input on an iPhone, there's a toolbar above the keyboard with the text input and done/cancel buttons - is there any way to hide this?

It's a bit clunky to have the input in two places for the way i have the interface (the label that the input is attached to, and again in the toolbar), and i have the done/cancel functionality covered in the actual interface as well.

Cheers for any pointers!
Title: Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
Post by: avatara359 on July 03, 2014, 12:09:35 AM
The latest NGUI has a bool toggle for it on UIInput.

Reference:
http://docs.unity3d.com/ScriptReference/TouchScreenKeyboard-hideInput.html

You can look at NGUI source and search/modify hideInput if you need to.
Title: Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
Post by: peterworth on December 20, 2014, 05:17:34 AM
is there any reason this option is disabled for multiline labels? i wanted it hidden for my multiline label, so i removed the test for multiline on line 229 of UIInput.cs, and it seems to work fine
Title: Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
Post by: ArenMook on December 21, 2014, 08:30:36 AM
I believe there was some issue with it, but I don't remember what it was. Something on Unity's side. If it works for you, that's all fine.