We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-[YYTextLayout firstRectForRange:(YYTextRange *)]
NSUInteger startLineIndex = [self lineIndexForPosition:range.start]; NSUInteger endLineIndex = [self lineIndexForPosition:range.end]; /* ... 此处省略若干行代码 ... */ NSMutableArray *lines = [NSMutableArray new]; // 这里的 `for` 循环, `i <= startLineIndex` 是不是应该 `i <= endLineIndex` // 用来获取 range 范围内的相关 “line” for (NSUInteger i = startLineIndex; i <= startLineIndex; i++) { YYTextLine *line = _lines[i]; if (line.row != startLine.row) break; [lines addObject:line]; }
如果我解读有误,请指正~
The text was updated successfully, but these errors were encountered:
No branches or pull requests
-[YYTextLayout firstRectForRange:(YYTextRange *)]
如果我解读有误,请指正~
The text was updated successfully, but these errors were encountered: