[ios][bookmarks] auto-camel case in bookmark and set names

This commit is contained in:
Kirill Zhdanovich 2013-01-08 12:55:08 +03:00 committed by Alex Zolotarev
parent 03ed68386a
commit f9523d9e39
4 changed files with 4 additions and 0 deletions

View file

@ -76,6 +76,7 @@
f.autocorrectionType = UITextAutocorrectionTypeNo;
f.delegate = self;
f.placeholder = NSLocalizedString(@"bookmark_set_name", @"Add Bookmark Set dialog - hint when set name is empty");
f.autocapitalizationType = UITextAutocapitalizationTypeWords;
cell.accessoryView = f;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;

View file

@ -173,6 +173,7 @@
f.font = [cell.textLabel.font fontWithSize:[cell.textLabel.font pointSize]];
f.tag = TEXTFIELD_TAG;
f.delegate = self;
f.autocapitalizationType = UITextAutocapitalizationTypeWords;
cell.textLabel.hidden = YES;
cell.detailTextLabel.hidden = YES;
cell.accessoryType = UITableViewCellAccessoryNone;

View file

@ -99,6 +99,7 @@
f.font = [cell.detailTextLabel.font fontWithSize:[cell.detailTextLabel.font pointSize]];
f.tag = TEXTFIELD_TAG;
f.delegate = self;
f.autocapitalizationType = UITextAutocapitalizationTypeWords;
// Reset temporary font
cell.detailTextLabel.text = nil;
[cell.contentView addSubview:f];

View file

@ -147,6 +147,7 @@
f.font = [cell.detailTextLabel.font fontWithSize:[cell.detailTextLabel.font pointSize]];
f.tag = TEXTFIELD_TAG;
f.delegate = self;
f.autocapitalizationType = UITextAutocapitalizationTypeWords;
// Reset temporary font
cell.detailTextLabel.text = nil;
[cell.contentView addSubview:f];