WebKitErrorDomain error 101
        Posted  
        
            by 
                Nam Young-jun
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nam Young-jun
        
        
        
        Published on 2011-03-04T14:10:19Z
        Indexed on 
            2012/12/02
            5:05 UTC
        
        
        Read the original article
        Hit count: 333
        
The following code produces and error of:
WebKitErrorDomain error 101 
code:
-(Void) searchBarSearchButtonClicked: (UISearchBar *) activeSearchBar { 
    NSString * query = [searchBar.text stringByReplacingOccurrencesOfString: @ "" withString: @ "+"]; 
    NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ "http://http://www.google.com/search?q =%, query]]; 
    NSURLRequest * requestObj = [NSURLRequest requestWithURL: url]; 
    [Home loadRequest: requestObj]; 
} 
-(Void) loadView { 
     [Super loadView]; 
     CGRect bounds = [[UIScreen mainScreen] applicationFrame];   
     searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake (0.0, 0.0, bounds.size.width, 48.0)]; 
     searchBar.delegate = self; 
     [Self.view addSubview: searchBar];
}
I don't speak english and rely on a translator. Because of the language issue could this be a keyboard problem, or an encoding problem?
© Stack Overflow or respective owner