Guide Keyboard broken

Feb 16 at 10:19 PM
Edited Feb 16 at 10:49 PM

Hello there,

I have another problem: when I call Guide.BeginShowKeyboard(), I see my Title three times, I can edit the top two fields and the ok-button is not at the correct position.

My Title is "Your Nickname" and my description is string.Empty. (another bug: while you can pass null on windows phone for one of these, it crashes under iOS).

 

When I managed to click the ok button (which doesn't work all the time), I receive a System.InvalidOperationException In Guide.ShowKeyboardInput():

 

result = ((UIAlertView) sender).Subviews.OfType<UITextField>().Single().Text;

 

here is an image of what i see before pressing ok:

Uploaded with ImageShack.us

 

EDIT: I just realized the "Your Nickname:" text which is three times visible is no title, it is the text itself and can be edited.

Mar 22 at 7:01 PM
Edited Mar 22 at 7:03 PM

I ran into the same problem. Therefore I tried today's developer branch from GitHub, where there have been a lot of changes concerning this code.

But I found the following problem with the developer branch code:

When I open the Guide with Guide.BeginShowKeyboardInput I run into an exception thrown at:

iOSGameWindow - Line 94

It is where the ClientBounds property is requested and it runs into a null at _viewController.View.Window

I tried to find why Window is null, but I couldn't. I guess that probably when the text input view is opened, the main game window gets invalid. Unfortunately I have no understanding of iOS View, UI etc.

However, when I insert:

 

if (_viewController.View.Window == null)
{
	return new Rectangle(0,0,0,0);
}

 

then everything runs fine.

I guess it is a hotfix that works fine for me now, but doesn't solve the bug at the right place.

Coordinator
Mar 23 at 3:42 PM

This is now raised as issue - https://github.com/mono/MonoGame/issues/394

And slated for 2.5.1 bug fix release.