iPhone SDK Tutorial: Creating UILabel programmatically

Pubblicato il: 28 aprile 2010
sul canale di: 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];


In questa pagina del sito puoi guardare il video online iPhone SDK Tutorial: Creating UILabel programmatically della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PuchkoffDevelopment 28 aprile 2010, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,454 volte e gli è piaciuto 3 spettatori. Buona visione!