start function from another tab in UIWebView

Posted by Marjan on Stack Overflow See other posts from Stack Overflow or by Marjan
Published on 2010-06-11T17:48:03Z Indexed on 2010/06/11 17:53 UTC
Read the original article Hit count: 192

Filed under:
|
|
|

Hello, I have app which have two views implemented in Tabbar, one of them is UIWebView which shows some random html and second is mapView (route-me map), I have function in MapViewController.m which do sth stuff when is clicked on marker label

- (void) tapOnLabelForMarker: (RMMarker*) marker onMap: (RMMapView*) map {
NSLog(@"taponlabelformarker clicked");

 self.tabBarController.selectedIndex=0;
 WebViewController *web = [[WebViewController alloc] init];

 [web dajdasepije];
}

and that function should call function which show html in uiwebview tab

-(void)dajdasepije {
 NSLog(@" pokreni me njezno");
 [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
  }

Problem is that UIWebView never show google page that I asked for it, NSLog prints out at terminal messages that function was called but nothing else happens.

Please help, Thanks in advance.

Marjan

© Stack Overflow or respective owner

Related posts about c

    Related posts about uiwebview