ios 从txt等文件中读取字符填充到textView
2020-07-24 本文已影响0人
Lee坚武
[myTextView.textStorage replaceCharactersInRange:NSMakeRange(0,0)withString:[NSString stringWithContentsOfURL:[NSBundle.mainBundle URLForResource:@"protocol" withExtension:@"txt"] usedEncoding:NULL error:NULL]];