Iphone UIL以圆形标记文本

Iphone UIL以圆形标记文本,iphone,uilabel,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:@"

这是我的代码,但不要得到完整的标签

//代码在这里

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

我想你想要一个角落。 您需要添加
QuartzCore框架
,然后添加此代码:
lblWish.layer.cornerRadius=50

你所说的“圆形标签”是什么意思?在你的项目中添加quartzcore框架,并设置标签CornerRadius使其为圆形。请参见此问题:我不习惯使用圆形标签。那么,通过编程,这是可能的吗?