I've been looking at loads of threads here and other places and I just can't get a text field done properly! All I need is a text field, with x coordinate of 284, y of 206, width of 109 and height of 18, in which I can type a username for twitter.
At the moment my code is:
twitterUsername = [[UITextField alloc] initWithFrame:CGRectMake(284, 206, 109, 18)];
twitterUsername.delegate = self;
twitterUsername.placeholder = @"<Enter Username>";
twitterUsername.textAlignment = UITextAlignmentLeft;
[[[CCDirector sharedDirector] openGLView] addSubview:twitterUsername];
But that will make a text field in the wrong place and facing the wrong way. I'm trying to do this within HelloWorldScene.m, not the AppDelegate. This is practically the last thing before my game is finished, please help!