This commit is contained in:
James Chen 2012-09-26 09:49:48 +08:00
commit e8e55c600b
1 changed files with 2 additions and 5 deletions

View File

@ -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;
}