2010-06-27 4 views
0

Cette utilisation de travailler quand j'utiliser dans un modèle d'application viewbasedélégué web problème

Mais quand j'utilise un UITabBarNavigation avec 2 vues ne fonctionne pas: S ??

-(void)viewDidLoad{ 
    [self.infoweb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.myserver.com/info.php"]]]; 
    self.infoweb.delegate = self; 
} 


-(BOOL)infoweb:(UIWebView *)infoweb shouldStartLoadWithRequest:(NSURLRequest *)request 
               navigationType:(UIWebViewNavigationType)navigationType 
{ 
    NSString *host = request.URL.host; 
    if([host isEqualToString:@"myServerApp"]) 
    { 
    NSString *command = request.URL.path.lastPathComponent; 
    if([command isEqualToString:@"chargeInfo"]) 
    { 
     NSLog(@"Info to nslog..."); 
    } 
    return NO; 
    } 
    return YES; 
} 

quelqu'un peut me comprendre :) et aidez-moi j'ai 2 vues et 2 controleres ce code va sur le deuxième, ma charge Web bien, mais le problème est que na pas shouldStartLoadWithRequest na pas 8 travail) aide !!

Dans mon Bulder interface i faire le lien avec les fichiers propriétaire (WebView-filesowner)

Répondre

0

Problème résolu: P

-(BOOL)**webView**:(UIWebView *)infoweb....