Posted By

kokikr on 10/02/09


Tagged


Versions (?)

three20 one/two corners rounded image view


 / Published in: Objective C
 

  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  

You need to login to post a comment.