I have a single view in my application which does not receive any events from iOS. I tried to call "BecomeFirstResponder" but this does not work and the method returns false.
Here is the code which creates the view:
_Window = new UIWindow(UIScreen.MainScreen.Bounds);
View = new ApplicationView(this);
_Window.RootViewController = new UIViewController();
_Window.Add(View);
_Window.MakeKeyAndVisible();
Thats the code which handles the input( ApplicationView; Base class is iPhoneOSGameView which has UIView as base class ):
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
foreach (UITouch item in touches.ToArray())
{
_Stage.MapTouchesBegan(new TouchEvent((Int32)item.Handle, item.LocationInView(this)));
}
}
The method is never called.
Thanks in advance
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)