2016.9.2
NSString*hint = [NSStringstringWithFormat:@"恭喜您,您的借款申请(借款编号:J20160902163237)审核已通过,点击查看审批详情并确认"];
NSRangestart = [messageStrrangeOfString:@"("];
NSRangeend = [messageStrrangeOfString:@")"];
NSString*hintStr = [messageStrsubstringWithRange:NSMakeRange(start.location, end.location-start.location+1)];
从"("开始,到")"的位置-"("的位置+1,即()里的字符串
网友评论