mirror of https://github.com/axmolengine/axmol.git
Merge branch 'gles20' of https://github.com/donaldalanmorrison/cocos2d-x into gles20
This commit is contained in:
commit
e8e55c600b
|
@ -51,7 +51,7 @@
|
|||
{
|
||||
[textField_ resignFirstResponder];
|
||||
[textField_ removeFromSuperview];
|
||||
[textField_ release];
|
||||
self.textField = NULL;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
|||
{
|
||||
if (self == nil) break;
|
||||
editState_ = NO;
|
||||
textField_ = [[CustomUITextField alloc] initWithFrame: frameRect];
|
||||
self.textField = [[[CustomUITextField alloc] initWithFrame: frameRect] autorelease];
|
||||
if (!textField_) break;
|
||||
[textField_ setTextColor:[UIColor whiteColor]];
|
||||
textField_.font = [UIFont systemFontOfSize:frameRect.size.height*2/3]; //TODO need to delete hard code here.
|
||||
|
@ -79,9 +79,6 @@
|
|||
return self;
|
||||
}while(0);
|
||||
|
||||
[textField_ release];
|
||||
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue