uiwebview

in UiWebView - NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -108)

萝らか妹 提交于 2019-12-11 02:32:40
问题 When I open a link in UIWebView and click on facebook icon of content of that URL it gives the following error 2014-01-09 13:15:14.412 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:14.412 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:15.063 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:15.064 AppName[2067:5407] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -108) I also search this

UIWebView resize to fit Content

我只是一个虾纸丫 提交于 2019-12-11 02:20:20
问题 Here is what I am trying to do, I have a webView whose frame I am setting as self.webView.frame = CGRectMake(0, Y,screenWidth,1); the y coordinate is calculated based on the height of the other views that are added dynamically which works fine. the screenWidth is set to 320 or 480 depending on device orientation which also works fine. Now I want my webView to set it's width as the screenWidth and resize it's height alone to fit the content. The content could be plainText which I load as

android 2.2 WebView and WebViewClient RTSP problem

廉价感情. 提交于 2019-12-11 02:11:40
问题 I wrote an app with webview which displays m.youtube.com. It works in other android versions. However, in Android 2.2, shouldOverrideUrlLoading is not even called when a link like "rtsp://vx.cache.youtube.com/..." is clicked. Does anyone have the same problem? 回答1: I've found a workaround for this problem. If you'll change the User-Agent of WebView while requesting YouTube page (http://m.youtube.com/) you'll get correct links to the videos. And all videos will be opened by YouTube internal

Memory Leak in UIWebview on loading NSURLRequest

空扰寡人 提交于 2019-12-11 02:06:41
问题 I have created a custom browser for my app. Whenever i load a url request into web view a memory leak is seen. Please note that no backtrace is shown. Application has a webview and a refresh button is given below it. The code on refresh button is as follows - (IBAction)refresh:(id)sender { // Some solution suggested by online community but in vain [wvWebView loadHTMLString:@"" baseURL:nil]; [wvWebView stopLoading]; wvWebView.delegate = nil; // Clearing cache Memory [[NSUserDefaults

save html page with the images,javascript and css in one folder in iphone application

房东的猫 提交于 2019-12-11 01:52:28
问题 I want to save webpage in document directory with the images,css and javascripts etc.. I have done below code : But it only generates the html file.. NSURL *url = [NSURL URLWithString:@"http://www.apple.com"]; NSData *urlData = [NSData dataWithContentsOfURL:url]; [urlData writeToFile:filePath atomically:YES]; Any idea or suggestion is most welcome. Thanks 回答1: The ASIHTTPRequest project has a class called ASIWebPageRequest which is designed to do exactly what you want. If you're okay with

How to load images with HTML file in UIWebView

空扰寡人 提交于 2019-12-11 01:36:11
问题 I want to load an HTML file in an UIWebView using following lines of code: NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"01Numbers" ofType:@"html"]; NSURL *url=[NSURL fileURLWithPath:htmlFile]; NSURLRequest *request=[NSURLRequest requestWithURL:url]; [WebView loadRequest:request]; I am able to load the HTML file, but this HTML file also contain some images, and that images are not loading/visible in the view, can anyone suggest any solution for this? 回答1: HTML File: <HTML>

iOS UIWebView page load observability

℡╲_俬逩灬. 提交于 2019-12-11 01:14:31
问题 I would like to know for sure, when a page load is finished in UIWebView . I am aware of the "refcounting" approach between didStartLoad / didFinishLoad outlined in here and it kinda-sorta works for me, but i don't feel very confident about it. It has grown some hairy ifs and still acts strangely when Javascript decides to talk into document.location . I am unclear namely about the following: UIWebViewDelegate for all the power it should handle, is very terse and has next to none

Meme Type Error on UiWebView

浪尽此生 提交于 2019-12-11 00:58:24
问题 I have a iOS app which has a uiwebview where it opens a website, but any link clicked in the webview opens up in Safari. In my code bellow, it get a memetype error on the line "webView.load(request)". Can you give me some code so I can fix this? Thanks! (I need to use a UIWebView instead of a WKWebView) class VideosViewController : UIViewController, UIWebViewDelegate { @IBOutlet weak var webView : UIWebView! override func viewDidLoad() { super.viewDidLoad() guard let url = URL(string: "http:/

iPhone app crashing when turning device while keyboard is showing

倾然丶 夕夏残阳落幕 提交于 2019-12-10 23:50:02
问题 I have an iPhone app with a webview that redirects to a forum at some point. I noticed that the app will crash when I do these steps: 1) Browse through the forum (vBulletin) 2) Open a thread and try to post a message 3) Click into the textarea so the keyboard shows up 4) Then type and/or turn the device quickly Now my iPhone app crashes. Notice: the crash only appears in very long threads, so it must be some problem of memory or CPU? Anyway, I can't figure out where to search for the problem,

iOS 6 “HTML Input file tag” doesn't work if load the web page in UIWebView

寵の児 提交于 2019-12-10 23:23:33
问题 We know that in iOS 6 mobile safari supports HTML input file tag to upload images. I just created an HTML file like this and it worked fine in mobile safari. But when I loaded it in a UIWebView, I found I could still tap the "Choose file" button to choose an image file, but after I tapped "done" and returned to the UIWebView, the web page in the UIWebView reloaded and no file was attached to the HTML form. Is that a restriction to UIWebView? 回答1: I have sorted it out. This is due to I put the