Ich bin es schon wieder.
Ich verwende folgenden Quellcode für eine UIAlertView:
Alles anzeigen
Gefunden habe ich das so im Netz mobile-dev.de/iphone-code-schn…t-texteingabefeldern.html
Jetzt ist die Frage ob das
A) so okay ist und von Apple akzeptiert wird
und
B) wie kann ich auf meine Textfelder zugreifen, da ich ja Benutzername und Passwort überprüfen will.
Schon mal Danke.
Gruß
Cabaalo
Ich verwende folgenden Quellcode für eine UIAlertView:
PHP-Quellcode
- UIAlertView *myAlert = [[UIAlertView alloc]
- initWithTitle: @"Login"
- message:@""
- delegate:self
- cancelButtonTitle:@"Abbrechen"
- otherButtonTitles:@"Login", nil];
- // Texteingabefelder hinzufügen
- [myAlert addTextFieldWithValue:@"" label:@"Benutzername"];
- [myAlert addTextFieldWithValue:@"" label:@"Passwort"];
- // Texteingabefelder konfigurieren
- UITextField *textfield = [myAlert textFieldAtIndex:0];
- textfield.clearButtonMode = UITextFieldViewModeWhileEditing;
- textfield.keyboardType = UIKeyboardTypeAlphabet;
- textfield.keyboardAppearance = UIKeyboardAppearanceAlert;
- textfield.autocapitalizationType = UITextAutocapitalizationTypeWords;
- textfield.autocorrectionType = UITextAutocorrectionTypeNo;
- textfield = [myAlert textFieldAtIndex:1];
- textfield.clearButtonMode = UITextFieldViewModeWhileEditing;
- textfield.keyboardType = UIKeyboardTypeURL;
- textfield.keyboardAppearance = UIKeyboardAppearanceAlert;
- textfield.autocapitalizationType = UITextAutocapitalizationTypeNone;
- textfield.autocorrectionType = UITextAutocorrectionTypeNo;
- [myAlert show];
- [myAlert release];
Gefunden habe ich das so im Netz mobile-dev.de/iphone-code-schn…t-texteingabefeldern.html
Jetzt ist die Frage ob das
A) so okay ist und von Apple akzeptiert wird
und
B) wie kann ich auf meine Textfelder zugreifen, da ich ja Benutzername und Passwort überprüfen will.
Schon mal Danke.
Gruß
Cabaalo
