12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // MHTopicCell.h
- // MHDevelopExample
- //
- // Created by CoderMikeHe on 17/2/9.
- // Copyright © 2017年 CoderMikeHe. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "TDButton.h"
- @class MHTopicFrame,MHTopicCell,MHUser;
- @protocol MHTopicCellDelegate <NSObject>
- @optional
- /** 点击头像或昵称的事件回调 */
- - (void)topicCellDidClickedUser:(MHTopicCell *)topicCell;
- /** 点击头像或昵称的事件回调 */
- //- (void)topicCellDidClickedTopicContent:(MHTopicCell *)topicCell;
- /** 用户点击更多按钮 */
- - (void)topicCellForClickedMoreAction:(MHTopicCell *)topicCell;
- /** 点击评论cell的昵称 */
- - (void) topicCell:(MHTopicCell *)topicCell didClickedUser:(NSString *)userId;
- /** 点击某一行的cell */
- - (void) topicCell:(MHTopicCell *)topicCell didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
- @end
- @interface MHTopicCell : UITableViewCell
- + (instancetype)cellWithTableView:(UITableView *)tableView;
- /** 话题模型数据源 */
- @property (nonatomic , strong) MHTopicFrame *topicFrame;
- /** 代理 */
- @property (nonatomic , weak) id <MHTopicCellDelegate> delegate;
- /** 点赞 */
- @property (nonatomic , strong) TDButton *thumbBtn;
- /** 文本内容 */
- @property (nonatomic , weak) YYLabel *contentLabel;
- /** 创建时间 */
- @property (nonatomic , strong) YYLabel *createTimeLabel;
- /** UITableView */
- @property (nonatomic , weak) UITableView *tableView;
- @property (nonatomic, copy) void(^replyContentBlock)(void);
- @property (nonatomic, copy) void(^longBlock)(void);
- @property (nonatomic, copy) void(^longSubBlock)(NSInteger commentId,UILabel * label);
- @end
|