Pobieranie tekstu z UIAlertView

Wydaje się, że czegoś brakuje, ale generowany jest poniższy kodnil wartości dla obutitle ititle1 (nawet jeśli poprawnie uruchamia właściwy typ alertu i nie wskazuje żadnego ostrzeżenia lub błędu). Jaki może być problem z tą implementacjąUIAlertView?

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"High Score" message:(NSString *)scoreMessage delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
alert.alertViewStyle= UIAlertViewStylePlainTextInput;
UITextField *title1 = [alert textFieldAtIndex:0];
[alert show];
title1= [alert textFieldAtIndex:0];
NSString *title = title1.text;
NSLog(@"The name is %@",title);
NSLog(@"Using the Textfield: %@",[[alert textFieldAtIndex:0] text]);

questionAnswers(4)

yourAnswerToTheQuestion