ContentTableViewCell.h 974 Bytes
Newer Older
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 41 42 43 44 45 46 47 48 49
//
//  ContentTableViewCell.h
//  Lighting
//
//  Created by 曹云霄 on 2016/12/9.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KeyBoardAccessoryView.h"


@protocol ExtensionViewTapDelegate <NSObject>
@required

/**
 拍照
 */
- (void)showCameraAction;

/**
 相册选择
 */
- (void)showPhotoAlbumAction;

/**
 刷新高度
 */
- (void)refreshHeight:(CGFloat)height;

@end


/**
 扩展项

 - Camera:     相机
 - PhotoAlbum: 相册
 - Emoji:      表情
 */
typedef NS_ENUM(NSInteger,ItemIndex){
    Camera = 0,
    PhotoAlbum,
    Emoji,
};

@interface ContentTableViewCell : UITableViewCell<ExtensionDelegate,UITextViewDelegate>
@property (nonatomic,weak) id<ExtensionViewTapDelegate>delgate;

50 51 52 53 54
/**
 textView 高度
 */
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightConstraint;

55 56 57
/**
 内容
 */
58
@property (weak, nonatomic) IBOutlet ICRPlaceholderTextView *contentTextView;
59 60

@end