Friday, 15 April 2011

iphone - iOS UIWebView does not show the websites correct -



iphone - iOS UIWebView does not show the websites correct -

i creating simple uiwebview shown. works fine websites corrupted. looks like, images arent loaded.

curious is, in browser, same page loading fine o_o ideas?

#import "webviewcontroller.h" @interface webviewcontroller () @property nsurl *adurl; @property (weak, nonatomic) iboutlet uiwebview *webview; @end @implementation webviewcontroller -(id) initwithurl:(nsurl *)url { self = [super init]; if (self) { self.adurl = [nsurl new]; self.adurl = url; } homecoming self; } - (void)viewdidload { [super viewdidload]; [self.webview loadrequest:[nsurlrequest requestwithurl:self.adurl]]; } - (void)didreceivememorywarning { [super didreceivememorywarning]; // dispose of resources can recreated. } @end

task solved. problem was, old class responsible webcaching disturbing redirect , on way suppressed load of baseurl objects. givin me ideas how solve. cheers

ios iphone ios7 uiwebview

No comments:

Post a Comment