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];
Sur cette page du site, vous pouvez voir la vidéo en ligne iPhone SDK Tutorial: Creating UILabel programmatically durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur PuchkoffDevelopment 28 avril 2010, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,454 fois et il a aimé 3 téléspectateurs. Bon visionnage!