three20 one/two corners rounded image view


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CGFloat bottomRightCorner = --different conditions--;
  2.  
  3. TTImageView *tImageView = (TTImageView *)[cell viewWithTag:2009];
  4. if (tImageView == nil) {
  5. tImageView = [[TTImageView alloc] initWithFrame:CGRectMake(10, 1, 75, 75)];
  6. tImageView.tag = 2009;
  7. tImageView.backgroundColor = [UIColor clearColor];
  8. [cell addSubview:tImageView];
  9. }
  10. tImageView.style = [TTShapeStyle styleWithShape:
  11. [TTRoundedRectangleShape shapeWithTopLeft:10 topRight:0 bottomRight:0 bottomLeft:bottomRightCorner] next:
  12. [TTContentStyle styleWithNext:nil]];
  13. tImageView.image = --image--;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.