Author Topic: UIInput iOS Multitapping on field causes device crash ( Solved )  (Read 2827 times)

avatara359

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 8
    • View Profile
Hello,

Taping multiple fingers at the same time on a UIInput field causes the device to crash. Using Latest NGUI 3.6.6 with an empty project using Unity 4.5.1f3.

I attached an image of the crash from XCode. It looks like the crash is somewhere in the UIInput.Update().

I need a fix for this, going to release soon.

Thank you!


Update:
Managed to get this out of XCode:
NullReferenceException: A null value was found where an object instance was required.
  at UIInput.Update () [0x00026] in /Users/Shared/AlterActive/NGUI366/Assets/NGUI/Scripts/UI/UIInput.cs:542

Update:
Changed
From: if (!mKeyboard.active) return;
To: if (mKeyboard != null && !mKeyboard.active) return;
Problem apparently fixed

I love using NGUI btw
« Last Edit: July 03, 2014, 01:02:54 AM by avatara359 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput iOS Multitapping on field causes device crash ( Solved )
« Reply #1 on: July 03, 2014, 05:03:45 AM »
Curious. Naturally I thought, "keyboard can never be null when the 'wait for keyboard' flag is set!". Uh huh. Moral of the story... always be on the safe side while coding.

Thanks!