iphone - uiwebview problem loading page -
my webpage not load shows nothing have 3 viewcontrollers in firstviewcontroller click button loads next page thirdviewcontroller point webpage doesnt load
code firstviewcontroller
-(ibaction)movetoviewsiteview:(id)sender{ self.third = [[[secondviewcontroller alloc]initwithnibname:@"thirdviewcontroller" bundle:nil]autorelease]; [self.navigationcontroller pushviewcontroller:self.third animated:yes]; }
code in thirdviewcontroller
- (void)viewdidload { nsstring *urladdress=@"http://www.apple.com/"; nsurl *url=[nsurl urlwithstring:urladdress]; nsurlrequest *requestobj= [nsurlrequest requestwithurl:url]; [self.cscspage loadrequest:requestobj]; [super viewdidload]; }
the uiwebview have called webview in document window in ib if drag files owner webview when run app crashes.
hope clear
thanks
move [super viewdidload];
top of viewdidload method. should invoke super class implementation of first.
Comments
Post a Comment