使用HTML雖然實現web視圖爲我編寫類似下面的越來越怪異的錯誤而在IOS
_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-代碼的頁面,通過更「%」的轉換比數據參數警告在
SRC = \ 「%@ \」
我不知道該怎麼辦,請幫助我。
它清除了警告並且非常感謝。 –
你能輸入確切的警告嗎? – CodenameLambda1
哦,是的正確!該死的!我怎麼會錯過它。 – CodenameLambda1