/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CGFloat bottomRightCorner = --different conditions--; TTImageView *tImageView = (TTImageView *)[cell viewWithTag:2009]; if (tImageView == nil) { tImageView = [[TTImageView alloc] initWithFrame:CGRectMake(10, 1, 75, 75)]; tImageView.tag = 2009; tImageView.backgroundColor = [UIColor clearColor]; [cell addSubview:tImageView]; } tImageView.style = [TTShapeStyle styleWithShape: [TTRoundedRectangleShape shapeWithTopLeft:10 topRight:0 bottomRight:0 bottomLeft:bottomRightCorner] next: [TTContentStyle styleWithNext:nil]]; tImageView.image = --image--;