Hallo zusammen,
ich habe ein UITextField & will dort Text aufnehmen. So wie ich das Feld aber erstellt habe, wir immer nur eine lange Zeile geschrieben.
Ich will aber, dass der Text automatisch umbricht, wenn er an den Rand kommt. Ich finde aber keine Einstellung in der Doku dafür - oder ich bin blind...
Alles anzeigen
Weiß jemand Rat?
Danke schon mal
ich habe ein UITextField & will dort Text aufnehmen. So wie ich das Feld aber erstellt habe, wir immer nur eine lange Zeile geschrieben.
Ich will aber, dass der Text automatisch umbricht, wenn er an den Rand kommt. Ich finde aber keine Einstellung in der Doku dafür - oder ich bin blind...
Quellcode
- -(void)notice:(id)sender{
- NSLog(@"Mach dich frisch");
- CGRect frame = CGRectMake(00.0, 00.0, 320.0, 200.0);
- noticeText = [[UITextField alloc] initWithFrame:frame];
- //noticeText.borderStyle = UITextBorderStyleBezel;
- noticeText.textColor = [UIColor blackColor];
- noticeText.font = [UIFont systemFontOfSize:13.0];
- noticeText.placeholder = @"";
- noticeText.backgroundColor = [UIColor whiteColor];
- noticeText.keyboardType = UIKeyboardTypeDefault;
- noticeText.returnKeyType = UIReturnKeyDone;
- noticeText.secureTextEntry = NO; // make the text entry secure (bullets)
- //textFieldSecure.clearButtonMode = UITextFieldViewModeWhileEditing; // has a clear 'x' button to the right
- [self.view addSubview:noticeText];
- [noticeText becomeFirstResponder];
- [noticeText release];
- }
Weiß jemand Rat?
Danke schon mal