UITextField
UITextField
// create text field
UITextField *textField = [[UITextField alloc] initWithFrame: CGRectMake(50,50,200,40)];
// set some properties
textField.placeholder = @"please enter your id"; // set default text
textField.backgroundColor = [UIColor yellowColor]; // set background color
textField.autocorrectionType = UITextAutocorrectionTypeNo; // !!!! this is important
// add it to view
[[[CCDirector sharedDirector] openGLView] addSubview:textField];