Hi all!
I need to insert into my scene some UIKit stuff... for example I need a textfield and my code is like this:
UITextField *textField = [[UITextField alloc] initWithFrame: CGRectMake(348, 612 , 230, 30)];
[[[CCDirector sharedDirector] openGLView] addSubview: textField];
this works fine, but when I click a button I change the scene:
[[CCDirector sharedDirector] replaceScene: [CCFlipXTransition transitionWithDuration:1 scene:[HelloWorld node]]];
and this works, but the textField remain on the screen, this due that is added as subview of the view of cocos, and not as scene node...
how can I solve this to put the UIKit objects into a scene as node, to be managed like other nodes?
thanks