Question

Je travaille sur une application avec un UITextView. Je veux remplacer sur le clavier avec la touche Terminé touche retour touche. J'ai trouvé le code pour elle, mais il est pour une UITextField et non un UITextView.

Était-ce utile?

La solution

Vous pouvez modifier la clé de retour avec la propriété returnKeyType

UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(0.f, 0.f, 120.f, 40.f)];

textview.returnKeyType = UIReturnKeyDone;
[self.view addSubview:textview];

Cordialement,
KL94

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top