Author Topic: UIInput hide input Done/Cancel toolbar above keyboard on iPhone  (Read 7953 times)

peterworth

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
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!

avatara359

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 8
    • View Profile
Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
« Reply #1 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.

peterworth

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput hide input Done/Cancel toolbar above keyboard on iPhone
« Reply #3 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.