1

这是我的代码,但没有得到完整的标签

//代码在这里

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

1 回答 1

2

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

于 2012-04-26T12:08:40.090 回答