// // answerContentCell.h // ThePaperHD // // Created by scar1900 on 15/1/27. // Copyright (c) 2015年 scar1900. All rights reserved. // #import #import "TPSelectButton.h" #import "AsyncImageView.h" @protocol answerContentCellDelegate @optional - (void)hasPraisedAnswer:(NSIndexPath*)indexPath withCommentBO:(commentObjectVO*)commentBO; - (void)answerForUserBack:(commentObjectVO*)commentBO closeHidden:(BOOL) isHidden; - (void)deleteAnswerSuccess:(NSIndexPath*)indexPath; - (void) gotoUserInfo:(commentObjectVO *)comment; -(void) gotoAnswer:(commentObjectVO*)comment; @end @interface answerContentCell : UITableViewCell { void(^expandCell)(BOOL isExpand,CGFloat shallHeight); } @property(nonatomic, strong)commentObjectVO *commentBO; - (void)expandCell:(void(^)(BOOL,CGFloat))block; @property(nonatomic, assign)CGFloat answerNameHeight; @property(nonatomic, assign)CGFloat answerContentHeight; @property(nonatomic, strong)AsyncImageView *headPicImgView; @property(nonatomic, strong)UIImageView *vipImg;//认证用户提问或回答,头像不显示加”V“(bug:4116) @property(nonatomic, strong)UILabel *answerNameLabel; @property(nonatomic, strong)UIButton *answerNameButton; @property(nonatomic, strong)UIImageView *hostLabel; @property(nonatomic, strong)UILabel *answerContentLabel; @property(nonatomic, strong)TPSelectButton *praiseButton; @property(nonatomic, strong)UILabel *praiseNumLabel; @property(nonatomic, strong)UIButton *expandBtn; @property(nonatomic, strong)UIView *lineView; @property(nonatomic, strong)UILabel *timeLabel; @property(nonatomic, weak)id delegate; @property(nonatomic, strong)NSIndexPath *indexPath; @property(nonatomic, strong)UIButton *menuButton; @property(nonatomic, strong)UIButton *pushInfo; - (void)praise:(id)sender; @end