1
Support / Re: TextInput problem for iOS
« on: December 30, 2014, 08:05:45 am »
Okay, any tips on how to do that?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
void Check_UI_Input(tk2dUITextInput input)
{
string txt = "";
for (int i = 0; i < input.Text.Length; i++)
{
if (char.IsDigit(input.Text[i]))
txt += input.Text[i];
}
if (txt.Length > 0)
{
int number = int.Parse(txt);
input.Text = number >= 0 ? number.ToString() : "0";
}
else
input.Text = "";
}