Suppression de la largeur de text fixe d'un file RTF chargé dans UITextView

Dans mon application, je charge le contenu d'un file RTF dans UITextView utilisant ce code:

 NSURL *url = [[NSBundle mainBundle] URLForResource:[fileName ssortingngByDeletingPathExtension] withExtension:[fileName pathExtension]]; NSError *error; NSAtsortingbutedSsortingng *atsortingbutedSsortingng = [[NSAtsortingbutedSsortingng alloc] initWithFileURL:url options:@{NSDocumentTypeDocumentAtsortingbute:NSRTFTextDocumentType} documentAtsortingbutes:nil error:&error]; [textView setAtsortingbutedText:atsortingbutedSsortingng]; 

Le problème que j'ai est que la largeur de l' UITextView est plus grande que le text avec le file rtf. Je veux que le text remplisse le tout avec mon UITextView . Vous pouvez voir le problème ci-dessous dans la capture d'écran.

Y a-t-il un moyen de rendre cela possible? Merci beaucoup!

entrez la description de l'image ici