Set textview_hidden to true on init

This commit is contained in:
Justin Hawkwood 2013-06-26 13:44:49 -07:00
parent 30fa9e80d3
commit 9067918d73
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ static const int CC_EDIT_BOX_PADDING = 5;
textField_.backgroundColor = [UIColor clearColor];
textField_.borderStyle = UITextBorderStyleNone;
textField_.delegate = self;
textField_.returnKeyType = UIReturnKeyDefault;
textField_.hidden = true;
textField_.returnKeyType = UIReturnKeyDefault;
[textField_ addTarget:self action:@selector(textChanged) forControlEvents:UIControlEventEditingChanged];
self.editBox = editBox;