12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /**
- 做cell也有一个流程。
- 先写一个简单的view,填假数据,显示。
- 创建model,只写一个属性。加载model,并传给cell。显示这个真数据。
- 接下来,就简单了。
-
- */
- #import <UIKit/UIKit.h>
- //#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 <CommentCellDelegate>delegate2;
- +(CommentCell*)cellForTableView:(UITableView*)tableView Style:(CommentCellStyle )style;
- @end
- @protocol CommentCellDelegate <NSObject>
- -(void)approveComId:(NSString*)comId;
- @end
|