I have one issue regarding webview. I have an url and need to run that url in webView. and my code is here goes..
NSLog(@"Response ==> %@" ,encodedString); UIWebView *webView; webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0, 320, 470)]; [webView setDelegate:self]; NSURL *url1 = [NSURL URLWithString:[encodedString stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url1]; NSLog(@"Response2 ==> %@" ,url1); [self.webView loadRequest:requestObj]; [[self view] addSubview:webView];
encodedString is my url which I need to run in
webView I am getting url value in my output with "" (%22) and opening web view but the content of url not showing.when I use
NSLog for url1, it showing Response2 ==> %22http://66.541.67.50/mobile%22.