ios 本地html添加拼接参数

image.png
NSString *htmlStr = @"http://www.xiaodianying.mp4";
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"HTML/pages/videoDetail.html" ofType:nil];
htmlStr = [filePath stringByAppendingString:[NSString stringWithFormat:@"?videoUrl=%@",htmlStr]];
htmlStr = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)htmlStr, nil, nil, kCFStringEncodingUTF8));

你可能感兴趣的:(ios 本地html添加拼接参数)