[myTextView.textStorage replaceCharactersInRange:NSMakeRange(0,0)withString:[NSString stringWithContentsOfURL:[NSBundle.mainBundle URLForResource:@"protocol" withExtension:@"txt"] usedEncoding:NULL error:NULL]];
[myTextView.textStorage replaceCharactersInRange:NSMakeRange(0,0)withString:[NSString stringWithContentsOfURL:[NSBundle.mainBundle URLForResource:@"protocol" withExtension:@"txt"] usedEncoding:NULL error:NULL]];
本文标题:ios 从txt等文件中读取字符填充到textView
本文链接:https://www.haomeiwen.com/subject/bsodlktx.html
网友评论