uilabel圆形文字

时间:2012-04-25 13:07:39

标签: iphone uilabel

这是我的代码,但没有圆形

//代码在这里

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];

1 个答案:

答案 0 :(得分:2)

我想你想要转角。 您需要添加QuartzCore Framework并在添加此代码后: lblWish.layer.cornerRadius=50;