-
Notifications
You must be signed in to change notification settings - Fork 0
/
BLCMediaTableViewCell.h
34 lines (24 loc) · 1.14 KB
/
BLCMediaTableViewCell.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
30
31
32
33
34
//
// BLCMediaTableViewCell.h
// Blocstagram
//
// Created by Steven Schofield on 31/07/2014.
// Copyright (c) 2014 Double Digital. All rights reserved.
//
#import <UIKit/UIKit.h>
@class BLCMedia, BLCMediaTableViewCell, BLCComposeCommentView;
@protocol BLCMediaTableViewCellDelegate <NSObject>
- (void) cell:(BLCMediaTableViewCell *)cell didTapImageView:(UIImageView *)imageView;
- (void) cell:(BLCMediaTableViewCell *)cell didLongPressImageView:(UIImageView *)imageView;
- (void) cell:(BLCMediaTableViewCell *)cell didDoubleTapImageView:(UIImageView *)imageView;
- (void) cellDidPressLikeButton:(BLCMediaTableViewCell *)cell;
- (void) cellWillStartComposingComment:(BLCMediaTableViewCell *)cell;
- (void) cell:(BLCMediaTableViewCell *)cell didComposeComment:(NSString *)comment;
@end
@interface BLCMediaTableViewCell : UITableViewCell
@property (nonatomic, strong) BLCMedia *mediaItem;
@property (nonatomic, weak) id <BLCMediaTableViewCellDelegate> delegate;
@property (nonatomic, strong, readonly) BLCComposeCommentView *commentView;
+ (CGFloat) heightForMediaItem:(BLCMedia *)mediaItem width:(CGFloat)width;
- (void) stopComposingComment;
@end