/** 驾考社区的cell; */ //其实可以style隐藏起来。通过设置不同的model。来区分style #import @protocol CommunityCellDelegate; @interface CommunityCell : UITableViewCell /**2017/12/20 lee 新增 用以通知vc隐藏键盘 */ @property(nonatomic,copy)BlockTypeVo block; @property(assign) id delegate; /**不要解析。直接传json的字典过来。 */ @property(nonatomic,strong)NSDictionary* model; @property(nonatomic,strong) UILabel *acceptLabel; /**需要显示tag标签的画。将它设置为YES。default是NO。 */ @property(assign)BOOL showTag; /**这里可以有style的。 0 是驾考社区,1是话题详情的。2学车日记的。 */ +(CommunityCell*)cellForTableView:(UITableView*)tableView Style:(NSInteger)style; @end @protocol CommunityCellDelegate @optional /**对某一话题进行评论 */ -(void)gotoComment:(NSString*)comId; /** 把点赞。写一个代理方法。 取消赞,写一个代理方法。 */ -(void)didDePoint:(NSDictionary*)dict; -(void)didPoint:(NSDictionary*)dict; @end /**根据字典返回cell的高度. 总共3种style。话题列表的。话题详情。学车日记的。 */ CGFloat communityCellHeight(NSDictionary* dict , NSInteger type); /** 要修改一下风格。只有type为1时,才显示lblTab。其他不显示。 并且还要修改lblAddr的位置。 */