123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- /**
- 做cell也有一个流程。
- 先写一个简单的view,填假数据,显示。
- 创建model,只写一个属性。加载model,并传给cell。显示这个真数据。
- 接下来,就简单了。
-
- */
- #import <UIKit/UIKit.h>
- typedef enum{
- /**试题分析,没有星星
- */
- CommentCellStyleQuestion,
- /**驾校/教练点评,有星星
- */
- CommentCellStyleSchool
- }CommentCellStyle;
- @protocol CommentCellDelegate;
- @interface CommentCell : UITableViewCell
- {
- UIImageView* honorIv;
-
- UILabel* celDateLbl;
-
- 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 <CommentCellDelegate>delegate2;
- +(CommentCell*)cellForTableView:(UITableView*)tableView Style:(CommentCellStyle )style;
- @end
- @protocol CommentCellDelegate <NSObject>
- -(void)approveComId:(NSString*)comId;
- @end
|