Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MWMBookmarkTitleCell.m « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f5c58a66f2118db5e18340d237cee15f7856d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#import "MWMBookmarkTitleCell.h"

@interface MWMBookmarkTitleCell () <UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UITextField * name;
@property (weak, nonatomic) id<MWMBookmarkTitleDelegate> delegate;

@end

@implementation MWMBookmarkTitleCell

- (void)configureWithName:(NSString *)name delegate:(id<MWMBookmarkTitleDelegate>)delegate
{
  self.name.text = name;
  self.delegate = delegate;
}

- (void)textFieldDidEndEditing:(UITextField *)textField
{
  [self.delegate didFinishEditingBookmarkTitle:textField.text];
}

@end