11#import "EditSelectionTableViewCell.h"
13@interface EditSelectionTableViewCell (Private)
19@synthesize title = _title, value = _value, enabled = _enabled;
21- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
23 self = [
super initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:reuseIdentifier];
28 [
self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
41- (void)prepareForReuse
43 [
super prepareForReuse];
50 [
self setSelectionStyle:UITableViewCellSelectionStyleDefault];
54- (void)setTitle:(NSString *)title
59 _title = [title copy];
65- (void)setValue:(NSString *)value
70 _value = [value copy];
76- (void)setEnabled:(BOOL)enabled
84 UIListContentConfiguration *content = [
self defaultContentConfiguration];
85 [content setText:_title];
86 [content setSecondaryText:_value];
89 [[content textProperties] setColor:[UIColor tertiaryLabelColor]];
90 [[content secondaryTextProperties] setColor:[UIColor tertiaryLabelColor]];
93 [
self setContentConfiguration:content];