Skip to content

string range limits #57

@wuzhenda

Description

@wuzhenda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions