Hi, I'm creating my first game using cocos2d, and everything has been going smoothly! Right now, I'm trying to create a UITextView to enter a user's name. I would like to use textViewDidBeginEditing to move the view up with the keyboard when the UITextView is selected. Do I need to put anything in the header file? Here's the code I put into my Layer Node:
CGRect frame = [[[Director sharedDirector] openGLView] frame];
nameView = [[UITextView alloc] initWithFrame:frame];
nameView.textColor = [UIColor whiteColor];
nameView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0];
[nameView setReturnKeyType:UIReturnKeyDone];
[[[Director sharedDirector] openGLView] addSubview:nameView];