Hello,
I currently have a scene which calls a UITextField (code that I got from another post in this forum). However, when I replaceScene to the next scene, the UITextField is still there. How do I remove it so that it only exists in that particular scene ?
=======================================================================================
UITextField *nameTextField = [[UITextField alloc] initWithFrame: CGRectMake(100, 140 , 180, 28)];
nameTextField.backgroundColor = [UIColor clearColor];
nameTextField.borderStyle = UITextBorderStyleRoundedRect;
nameTextField.delegate = self;
nameTextField.returnKeyType = UIReturnKeyDone; keyboard
nameTextField.autocorrectionType = UITextAutocorrectionTypeNo;
nameTextField.autocapitalizationType = UITextAutocapitalizationTypeWords;
[[[Director sharedDirector] openGLView] addSubview: nameTextField];