代码截取字符串
截取字符串
NSUInteger loc = [result rangeOfString:@":\""].location + 2;(result中包含:",用\转义双引号)
NSUInteger len = [result rangeOfString:@"\"}"].location - loc;(result中包含"},用\转义双引号)
NSString *msg = [result substringWithRange:NSMakeRange(loc, len)];(loc为起始点,len为长度)