forked from 2359media/STXDynamicTableView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTXCommentCell.h
More file actions
40 lines (28 loc) · 1.29 KB
/
STXCommentCell.h
File metadata and controls
40 lines (28 loc) · 1.29 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
32
33
34
35
36
37
38
39
40
//
// STXCommentCell.h
// STXDynamicTableViewExample
//
// Created by Jesse Armand on 10/4/14.
// Copyright (c) 2014 2359 Media Pte Ltd. All rights reserved.
//
@import UIKit;
typedef NS_ENUM(int16_t, STXCommentCellStyle) {
STXCommentCellStyleSingleComment,
STXCommentCellStyleShowAllComments
};
@class STXCommentCell;
@protocol STXCommentCellDelegate <NSObject>
@optional
- (void)commentCellWillShowAllComments:(STXCommentCell *)commentCell;
- (void)commentCell:(STXCommentCell *)commentCell willShowCommenter:(id<STXUserItem>)commenter;
- (void)commentCell:(STXCommentCell *)commentCell didSelectURL:(NSURL *)url;
- (void)commentCell:(STXCommentCell *)commentCell didSelectHashtag:(NSString *)hashtag;
- (void)commentCell:(STXCommentCell *)commentCell didSelectMention:(NSString *)mention;
@end
@interface STXCommentCell : UITableViewCell
@property (copy, nonatomic) id <STXCommentItem> comment;
@property (nonatomic) NSInteger totalComments;
@property (weak, nonatomic) id <STXCommentCellDelegate> delegate;
- (instancetype)initWithStyle:(STXCommentCellStyle)style comment:(id<STXCommentItem>)comment reuseIdentifier:(NSString *)reuseIdentifier;
- (instancetype)initWithStyle:(STXCommentCellStyle)style totalComments:(NSInteger)totalComments reuseIdentifier:(NSString *)reuseIdentifier;
@end