Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 51

awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
10/03/13 09:14 PM (12 years ago)

Webview Not Working with Retina

I am having a bit of trouble with my webview code. it is completely working with iPhone and iPad non-retina version but can't get it to work with retina. specifically, the webview opens in retina version but immediately closes I have provided my code below... What seems to be the problem here? ********************** self.webView.delegate=self; self.webView.scalesPageToFit = YES; NSString *urlAddress = @"https://www.google.com/"; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Request Object NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; //Load the request in the UIWebView. [webView1 loadRequest:requestObj]; [self.view addSubview:self.webView]; ********************** I'm an amateur programmer so please forgive me. I already did my google search but failed at finding the answer so here i am :) P.S. I'm building a custom app and i need a webview inside it so I can't use the custom URL and custom HTML plugin. P.P.S here's a stackoverflow of my same question: http://stackoverflow.com/questions/19173059/how-to-make-webview-work-in-iphone-ipad-retina
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/11/13 09:04 AM (12 years ago)
Did you end up fixing this one? Maybe we can tackle it together. David https://buzztouchmods.com/market
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.