Monday, 2 September 2013

How to get a certain bytes length subString from a NSString

How to get a certain bytes length subString from a NSString

Such as I have a NSString is str = @"ÎÒ¾ÍÊDzâÊÔÒ»ÏÂ" or str = @"ÎÒ" . And
I want to restrict a certain byte length. such as byteLength = 10.
I know the subSrtring is not the str.length=10 How to get a certain bytes
length subString from a NSString, thank you

No comments:

Post a Comment