这是我的代码,但没有圆形
//代码在这里
UILabel * lblWish= [[UILabel alloc] initWithFrame:CGRectMake(x+25,318, 290, 100)];
lblWish.transform = CGAffineTransformMakeRotation( M_PI/90);
lblWish.textColor=[UIColor whiteColor];
[lblWish setFont:[UIFont fontWithName:@"Dadhand" size:38]];
lblWish.lineBreakMode = UILineBreakModeWordWrap;
lblWish.numberOfLines = 2;//Dynamic
lblWish.backgroundColor = [UIColor clearColor];
lblWish.shadowColor = [UIColor colorWithWhite:1.0 alpha:0.4];
lblWish.shadowOffset = CGSizeMake(1, 1);
lblWish.text = [ArylblWish objectAtIndex:i]
[self.view addSubview:lblWish];
答案 0 :(得分:2)
我想你想要转角。
您需要添加QuartzCore Framework
并在添加此代码后:
lblWish.layer.cornerRadius=50;