Il risultato sarà la scritta "Hello World!"
NSString *stringHello = @"Hello"; label.text = [NSString stringWithFormat:@"%@%@%@", stringHello,@" ",@"World!"];
Sorgenti, linguaggi, best practice, suggerimenti, sul mondo della programmazione e non solo
NSString *stringHello = @"Hello"; label.text = [NSString stringWithFormat:@"%@%@%@", stringHello,@" ",@"World!"];
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"TITOLO DI ESEMPIO" message:@"MESSAGGIO DI ESEMPIO" delegate:self cancelButtonTitle:nil // cancelButtonTitle:@"CANC" otherButtonTitles:@"OK", nil]; alert.tag=101; [alert show]; //per ricevere l'evento del pulsante cliccato - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { //...other code } //... }