2012-04-25 6 views
1

это мой код, но не получает метку в круглом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]; 
+2

Что вы подразумеваете под «этикеткой в ​​круглом»? – Niko

+1

Добавьте кварцевый фреймворк в свой проект и установите Label CornerRadius, чтобы сделать его круглым. – iMash

+0

Смотрите этот вопрос: http://stackoverflow.com/questions/510382/how-do-i-create-a-round-cornered-uilabel-on-the-iphone –

ответ

2

Я думаю, что вы хотите угла в раунде. вам нужно добавить QuartzCore Framework и после этого введите код: lblWish.layer.cornerRadius=50;

Смежные вопросы