/** 做cell也有一个流程。 先写一个简单的view,填假数据,显示。 创建model,只写一个属性。加载model,并传给cell。显示这个真数据。 接下来,就简单了。 */ #import //#import "Comment.h" #import "RDImageView.h" typedef enum{ /**试题分析,没有星星 */ CommentCellStyleQuestion, /**驾校/教练点评,有星星 */ CommentCellStyleSchool }CommentCellStyle; @protocol CommentCellDelegate; @interface CommentCell : UITableViewCell { UIImageView* honorIv; UILabel* celDateLbl; RDImageView* rdImgV; CommentCellStyle cellStyle; } @property (nonatomic, copy) NSString *VCName; /**暂时只有对驾校的评论。教练的是空的。 */ @property(nonatomic,strong)NSDictionary* dict; /**cell的model */ //@property(nonatomic,strong)Comment* model; /** 试题评论页面用 */ @property (nonatomic, strong) NSDictionary *commentDic; /**点赞按钮 */ @property(nonatomic,strong)UIButton* upBtn; @property(assign)id delegate2; +(CommentCell*)cellForTableView:(UITableView*)tableView Style:(CommentCellStyle )style; @end @protocol CommentCellDelegate -(void)approveComId:(NSString*)comId; @end