1
我想顯示在UIwebviewcontroller的鏈接。 我搜索,發現這個解決方案:無法通過點擊UIWebView中的鏈接與視網膜4
NSString *html = [NSString stringWithFormat:@"%@%@%@",@"<html><head></head><body><a style=\"font-family:Verdana, Geneva, sans-serif; font-size: 12px;\" href=\"", item.link, @"\">For more informations</a></body></html>"];
[webView loadHTMLString:html baseURL:nil];
[self.view addSubview:webView];
該解決方案適用於所有iOS但不與視網膜4英寸的iPhone。 你能告訴我,如果我做錯了什麼或者它是一個iPhone模擬器的錯誤。
感謝
「你能告訴我,如果我做錯了什麼」 - 當然,你在濫用格式字符串。 – 2013-06-26 09:24:40
我知道這不是最好的解決方案,但如果我改變這一點,你認爲它會解決我的問題嗎? – infocom
我和你的建議做: 的NSString * HTML = [的NSString stringWithFormat:@ 「
For more informations」,item.link]。 – infocom