0
표시 할 코드는 다음과 같습니다.키보드가 cocos2d에 uitextfield를 표시하지 않습니다.
UIViewController* viewControoler = [[UIViewController alloc]init];
textfield = [[UITextField alloc]initWithFrame:CGRectMake(0,0,280,90)];
textfield.placeholder = @"word";
textfield.keyboardType = UIKeyboardTypeDefault;
textfield.returnKeyType = UIReturnKeySearch;
textfield.clearButtonMode = UITextFieldViewModeWhileEditing;
textfield.delegate = self;
textfield.userInteractionEnabled = YES;
[textfield becomeFirstResponder];
[viewControoler.view addSubview:textfield];
[[[CCDirector sharedDirector]openGLView] addSubview:viewControoler.view];
잘 돌아갑니다. 그러나 uitextfiled를 클릭 할 때 키보드가 오지 않기 때문에 텍스트 필드를 편집 할 수 없습니다.