i want to open some popup window like UIAlertView but with UITextField in my cocos2d game to ask a username for highscore list, is there any control for this? i had never work with UIKIt controls before
0
votes
2 Answers
0
votes
According to me you can present a view controller when you want to submit the score.
In that view controller you can implement what ever you want implement..
UIViewController* myController = [[UIViewController alloc] init];
[[[CCDirector sharedDirector] openGLView] presentModalViewController:myController animated:YES];
Try this if its creating some problem you can use :
UIViewController* myController = [[UIViewController alloc] init];
[[[CCDirector sharedDirector] openGLView] addSubview:myController.view];