Posts

Post not yet marked as solved
2 Replies
0 Views
I’m fairly sure that’s not the case. It’s really the UItextView component itself allocating the memoryNSError* error = nil;NSString* path = [[NSBundle mainBundle] pathForResource:@"Example" ofType:@"txt"];NSString* content = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];// no problem up to this point.myUITextView.text = content; // this adds over 110Mb of memory usage for a 50Kb text file.