Blame client/iOS/Views/EditSelectionTableViewCell.m
|
Packit |
1fb8d4 |
/*
|
|
Packit |
1fb8d4 |
Custom table cell with a label on the right, showing the current selection
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
Packit |
1fb8d4 |
If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#import "EditSelectionTableViewCell.h"
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@implementation EditSelectionTableViewCell
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@synthesize label = _label, selection = _selection;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
|
Packit |
1fb8d4 |
if (self) {
|
|
Packit |
1fb8d4 |
// Initialization code
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
return self;
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
[super setSelected:selected animated:animated];
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
// Configure the view for the selected state
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@end
|