在页面中实现 web 视图时,我编写了如下代码
_testURLString = @"http://192.168.4.196/course/Course";
NSString *embedHTML = [NSString stringWithFormat:@"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: blue;\
}\
</style>\
</head><body style=\"margin:0\">\
<embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
width=\"400\" height=\"700\"></embed>\
</body></html>"];
NSString *html = [NSString stringWithFormat:embedHTML, _testURLString, 400, 700];
UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame];
videoView.backgroundColor = [UIColor clearColor];
[videoView loadHTMLString:html baseURL:nil];
[self.view addSubview:videoView];
X-code 的警告是比数据参数警告更多的 '%' 转换
src=\"%@\"
我不知道该怎么办请帮助我。