Hi,
So I’ve got some UIViews running nicely on top of the main OF GL View… and actions created either programmatically e.g. Target-Action pairs:
[currentCell.sendButton addTarget:self action:@selector(sendButtonPressed:withEvent:) forControlEvents:UIControlEventTouchDown];
or using nib files and IBAction methods all work fine.
What don’t work are the three standard iOS touch methods, neither in my UIViewController subclass nor in its UIView subclasses:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
I’m assuming that EAGLView.mm catches all of those touches, converts them to the OF equivalent of touchDown, touchMoved, touchUp… and the responder chain stops there.
So, now I have a UIView that’s covering about a quarter of the GLView - the GLView still gets the touch events, but the UIView gets no touch events in the view itself, only the above-mentioned target-action pairs.
Any way to get those UIResponder methods working in my UIView on top of the GLView?
Thanks for any tips!