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

string range limits #57

Open
wuzhenda opened this issue Jul 31, 2014 · 1 comment
Open

string range limits #57

wuzhenda opened this issue Jul 31, 2014 · 1 comment

Comments

@wuzhenda
Copy link

I create a new project test a string like this
NSString * strDianJia=@"ikea</font>";
it runs to crash.but it works fine in your sample project.
I debuged.find in RTLabel.m file.
int position = [data rangeOfString:delimiter].location;
in my project the position return -1,if not find
so if (position!=NSNotFound) still true,but in your sample project it turns out to false.
I don't know why. so I set to false if it returns -1.

@KittenYang
Copy link

same question!

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

2 participants