Skip to content
Newer
Older
100644 33 lines (21 sloc) 1.24 KB
3386f42 Initial commit.
digdog authored
1 # DDBadgeViewCell for UITableView
2
3 DDBadgeViewCell is a UITableViewCell subclass that has a customizable badge view on the right. With fast Quartz 2D path drawing and blending, one can use this with very large data set and still keep great performance when scrolling.
4
cb383de Update screenshot URL
Ching-Lan 'digdog' HUANG 黃 青嵐 authored
5 ![](https://github.com/digdog/DDBadgeViewCell/raw/master/screenshot.png)
3dd2fc5 @bdunagan fixed README link for modded screenshot
authored
6 ![](https://github.com/bdunagan/DDBadgeViewCell/raw/master/screenshot2.png)
3386f42 Initial commit.
digdog authored
7
8 ## Requirement
9
10 1. iPhone SDK 3.1 or later (Sample project was created in iPhone SDK 4).
11 2. QuartzCore.framework should be included in your project.
12
13 ## Usage
14
15 Like regular UITableViewCell, you create them in - (UITableViewCell *)tableView:cellForRowAtIndexPath:
16
17 DDBadgeViewCell *cell = (DDBadgeViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
18 if (cell == nil) {
19 cell = [[[DDBadgeViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
20 }
21
22 And configure the cell through its properties below:
23
24 cell.summary = @"Summary";
25 cell.detail = @"Detail text goes here";
26 cell.badgeText = @"Badge Text";
27 cell.badgeColor = [UIColor orangeColor];
28 cell.badgeHighlightedColor = [UIColor lightGrayColor];
29
30 ## License
31
b62068f Update copyright header, screenshot, and iOS 4-safe project file.
digdog authored
32 DDBadgeViewCell is released under MIT License.
Something went wrong with that request. Please try again.