Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d7beac5e39
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (23 sloc) 0.759 kb
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 30 31
//
// SSBadgeTableViewCell.m
// SSToolkit
//
// Created by Sam Soffes on 1/29/11.
// Copyright 2011 Sam Soffes. All rights reserved.
//

#import "SSBadgeTableViewCell.h"
#import "SSBadgeView.h"

@implementation SSBadgeTableViewCell

#pragma mark - Accessors

@synthesize badgeView = _badgeView;


#pragma mark - UITableView

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
_badgeView = [[SSBadgeView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 55.0f, 20.0f)];
_badgeView.backgroundColor = [UIColor clearColor];
_badgeView.badgeAlignment = SSBadgeViewAlignmentRight;
self.accessoryView = _badgeView;
}
return self;
}

@end
Something went wrong with that request. Please try again.