更新时间:2023-11-14 23:17:28
-pathForResource:ofType:
不接受格式字符串.将 @%@"
替换为包含文件基本名称(即,文件名减去.txt扩展名)的字符串.
-pathForResource:ofType:
doesn't accept a format string; replace the @"%@"
with a string containing the base name of the file (i.e. the filename minus the .txt extention).
第二行和第三行也有不匹配的地方:您可能是说:
You've also got a mismatch on the second and third lines: you probably meant:
textView.text = textFile;