blob: cca0f155480d0c496722f1873907bd078cd58dbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#import "AddSetTableViewCell.h"
#import "UIColor+MapsMeColor.h"
@interface AddSetTableViewCell () <UITextFieldDelegate>
@end
@implementation AddSetTableViewCell
- (void)awakeFromNib
{
[super awakeFromNib];
self.textField.textColor = [UIColor blackPrimaryText];
self.textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:L(@"bookmark_set_name") attributes:
@{NSForegroundColorAttributeName : [UIColor blackHintText]}];
}
#pragma mark - UITextFieldDelegate
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
if (textField.text.length == 0)
return YES;
[self.delegate onDone:textField.text];
return NO;
}
@end
|