viernes, 24 de diciembre de 2010

Create UILabel in runtime

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 50, 70)];
label.numberOfLines = 2;
label.text@"text";
label.backgroundColor = [UIColor clearColor];
label.textColor = [UIColor blackColor];

label.highlightedTextColor = [UIColor blackColor];
label.textAlignment = UITextAlignmentLeft;
label.font = [UIFont systemFontOfSize:12];
[self.view addSubview:label];
[label release];

No hay comentarios:

Publicar un comentario

468x60