Skip to content
New issue

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

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 0]' *** First throw call stack: #25

Open
HHuiHao opened this issue May 25, 2018 · 1 comment

Comments

@HHuiHao
Copy link

HHuiHao commented May 25, 2018

iOS 11 or higher
image

@HHuiHao HHuiHao changed the title Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'cannot pass empty array' *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 0]' *** First throw call stack: May 25, 2018
@HHuiHao
Copy link
Author

HHuiHao commented May 29, 2018

解决iOS11换行然后再输入字符后崩溃bug:

_richTextEditor.replaceParagraphsWithLineFeeds = YES;
// 如果想要,图片插入后自动换行
 if (@available(iOS 11.0, *)) {
       [_richTextEditor insertText: @"\n\n"];
} else {
       [_richTextEditor insertText: @"\n"];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant