Removing fixed text width from an RTF file loaded into UITextView
问题 In my app I load the contents of an RTF file into a UITextView using this code: NSURL *url = [[NSBundle mainBundle] URLForResource:[fileName stringByDeletingPathExtension] withExtension:[fileName pathExtension]]; NSError *error; NSAttributedString *attributedString = [[NSAttributedString alloc] initWithFileURL:url options:@{NSDocumentTypeDocumentAttribute:NSRTFTextDocumentType} documentAttributes:nil error:&error]; [textView setAttributedText:attributedString]; The problem I am having is that