iPhone SDK Tutorial: Creating UILabel programmatically

Published: 28 April 2010
on channel: PuchkoffDevelopment
2,454
3

In this tutorial I will be teaching how to create UILabel programmatically.

Here is the code:

label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
label.text = @"UILabel";
label.backgroundColor = [UIColor redColor];
label.font = [UIFont fontWithName:@"Zapfino" size:14.0];
label.shadowColor = [UIColor blackColor];
label.shadowOffset = CGSizeMake (5, 5);
label.textColor = [UIColor greenColor];
label.textAlignment= UITextAlignmentCenter;
[self.view addSubview:label];


On this page of the site you can watch the video online iPhone SDK Tutorial: Creating UILabel programmatically with a duration of hours minute second in good quality, which was uploaded by the user PuchkoffDevelopment 28 April 2010, share the link with friends and acquaintances, this video has already been watched 2,454 times on youtube and it was liked by 3 viewers. Enjoy your viewing!