Thursday, May 21, 2015

Making a round lable

//width and height are twice of  layer.cornerRadius

label.frame = CGRectMake(0, 0, 100, 100);
label.center = CGPointMake(160, 240);
label.alpha = 0.0;
   
  label.layer.cornerRadius = 50;
  label.clipsToBounds = YES;

No comments:

Post a Comment