-
Notifications
You must be signed in to change notification settings - Fork 0
/
GSBBubbleCell.h
29 lines (26 loc) · 926 Bytes
/
GSBBubbleCell.h
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
//
// GSBBubbleCell.h
//
// Created by Gareth Bestor on 2/17/16.
// Copyright (c) 2016 tiritea. All rights reserved.
//
// Note: set indentationLevel (and/or indentationWidth) to adjust RHS/LHS bubble indentation.
// If applicable, this will also indent the imageView appropriately.
//
// Usage:
// [self.tableView registerClass:GSBBubbleCell.class forCellReuseIdentifier:@"BubbleCell"];
// ...
// GSBBubbleCell *cell = [tableView dequeueReusableCellWithIdentifier:@"BubbleCell"];
// cell.bubbleStyle = GSBBubbleCellStyleLeft;
// cell.indentationLevel = 1;
// cell.textLabel = @"I love bubbles!";
// cell.imageView.image = [UIImage imageNamed:@"bubbles.png"];
//
#import <UIKit/UIKit.h>
typedef enum {
GSBBubbleCellStyleRight = 0, // default
GSBBubbleCellStyleLeft
} GSBBubbleCellStyle;
@interface GSBBubbleCell : UITableViewCell
@property GSBBubbleCellStyle bubbleStyle;
@end