|
|
@@ -201,67 +201,7 @@
|
|
|
NSString* title = [self.messageinfo[indexPath.row] valueForKey:@"title"];
|
|
|
cell.contentLabel.text = title;
|
|
|
|
|
|
- // float width = tableView.frame.size.width;
|
|
|
- //
|
|
|
- // width-=CELL_MARGIN*2;
|
|
|
- // CGSize constraint = CGSizeMake(width*-2*LABEL_MARGIN, 20000.0f);//key label width is 40% cell width;
|
|
|
- //
|
|
|
- //
|
|
|
- //
|
|
|
- //
|
|
|
- // CGRect frame;
|
|
|
- // frame.size = constraint;
|
|
|
- // frame.origin.x=0;
|
|
|
- // frame.origin.y=0;
|
|
|
- // RTLabel* rtlabel = [[RTLabel alloc] initWithFrame:frame];
|
|
|
- // [rtlabel setLineBreakMode: RTTextLineBreakModeWordWrapping];
|
|
|
- // // rtlabel.lineSpacing = 20.0;
|
|
|
- // [rtlabel setText: title];
|
|
|
- // CGSize sizeval=rtlabel.optimumSize;
|
|
|
- // CGRect frameval = cell.valLabel.frame;
|
|
|
- // frameval.origin.x=constraintkey.width+CELL_MARGIN+3*LABEL_MARGIN; //2 margin for key 1 margin for value self
|
|
|
- // frameval.origin.y=LINE_WIDTH;
|
|
|
- // frameval.size = sizeval;
|
|
|
- // cell.valLabel.frame = frameval;
|
|
|
- // // [cell.valLabel setTextAlignment:RTTextAlignmentCenter];
|
|
|
- // cell.valLabel.text= val;
|
|
|
- // CGPoint rcenter;
|
|
|
- // rcenter.x = width * 0.4+width * 0.6/2;
|
|
|
- // rcenter.y = height /2;
|
|
|
- // cell.valLabel.center=rcenter;
|
|
|
- // // cell.valLabel.backgroundColor =[UIColor redColor];
|
|
|
- //
|
|
|
- // // cell.contentView.superview.backgroundColor = [UIColor clearColor];
|
|
|
- // // cell.backgroundColor = [UIColor whiteColor];
|
|
|
- // UIView * lineview = [[LineView alloc] initWithFrame:cell.contentView.frame];
|
|
|
- // lineview.userInteractionEnabled = NO;// 不设为NO会屏蔽cell的点击事件
|
|
|
- // lineview.backgroundColor = [UIColor clearColor];// 设为透明从而使得cell.backgroundColor有效.
|
|
|
- // lineview.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
|
- // [cell.contentView addSubview:lineview];// cell.contentView是个readonly属性,所以别想着替换contentView了.
|
|
|
-
|
|
|
- // cell.textview.text = title;
|
|
|
- // cell.TimeLabel.text=time;
|
|
|
- // [cell.MessageLabel sizeToFit];
|
|
|
- // NSString* content = [self.data.pagedata[indexPath.row] valueForKey:@"content"];
|
|
|
- // NSString* base64img =[self.data.pagedata[indexPath.row] valueForKey:@"image"];
|
|
|
- //
|
|
|
- // if(base64img.length>0)
|
|
|
- // {
|
|
|
- // NSData *_decodedImageData = [[NSData alloc] initWithBase64EncodedString:base64img options:NSDataBase64DecodingIgnoreUnknownCharacters];
|
|
|
- // cell.image.image = [UIImage imageWithData:_decodedImageData];
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // UIImage * img =[UIImage imageNamed:@"rect_market_news"];
|
|
|
- // cell.image.image = img;
|
|
|
- //
|
|
|
- // }
|
|
|
- // cell.title.text = title;
|
|
|
- // [cell.title sizeToFit];
|
|
|
- //
|
|
|
- // cell.content.text =content;
|
|
|
-
|
|
|
- // cell.imageView.image = [UIImage imageNamed:[self.toolsinfo[indexPath.row] valueForKey:@"img"]];
|
|
|
+
|
|
|
|
|
|
return cell;
|
|
|
|