UITextView with long text stops detecting links
| Originator: | graham_perks | ||
| Number: | rdar://15403931 | Date Originated: | 11/6/2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7 |
| Classification: | Reproducible: | Yes |
This is a regression from iOS 6.
When a UITextView contains a large amount of text, which contains embedded HTTP links, the link detector stops working part way through the text. Links near the top are detected fine. Links further down the document are not detected.
Steps to Reproduce:
1) In Xcode, create a new single-view app for iPhone.
2) Add a UITextView to the view.
3) Configure the UITextView to be non-editable, and to detect links.
4) Drag <a very long file, say 100K> file into the project.
5) In the viewDidLoad method, add some code to add the text to the text view.
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"my large file with links.txt" ofType:nil inDirectory:nil];
NSString *myText=[NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
self.textView.text = myText;
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!